EUCore 1.0.18

Package Description

Install-Package EUCore -Version 1.0.18
dotnet add package EUCore --version 1.0.18
<PackageReference Include="EUCore" Version="1.0.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EUCore --version 1.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EUCore, 1.0.18"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

EUCore

What is EUCore?

General Backend Architecture

→ Net core 3.1
→ MongoDb Driver
→ Dapper

Getting Started

  1. Install the standard Nuget package into your ASP.NET Core application.
Package Manager : Install-Package EUCore
  1. You must define the database connection string in AppSettings.json.
"DatabaseConfig": {
    "DatabaseType": "dapper",
    "ConnectionString": "CONNECTION_STRING"
}
  1. Define Entity
public class UserEntity : EntityBase<int>
{
    public string Username { get; set; }
}
  1. Start using
private IRepository<UserEntity> _userRepository;
public WeatherForecastController(IRepository<UserEntity> userRepository)
{
    _userRepository = userRepository;
}

[HttpGet]
public IEnumerable<UserEntity> Get()
{
    return _userRepository.GetAll();
}

5.UnitOfWork

public class UnitOfWorkManager : UnitofWorkManagerBase
{
 
    public UnitOfWorkManager(IComponentContext context,AppSettings appSettings) : base(appSettings,context)
    {
      protected override DbConnection CreateConnection()
      {
          return new SqlConnection();
      }
    }
 
}

6.Dependecy

builder.RegisterModule(new EUCoreModule(appSettings));
builder.RegisterType<UnitOfWorkManager>().As<IUnitOfWorkManager>().As<IRepositoryManager>().InstancePerLifetimeScope();
builder.Register(c => new RuntimeInitializer()
    .DefaultMapper(typeof(DefaultEntityMapper<>))
    .SetDialect<MySqlDialect>()//SqlServerDialect or MySqlDialect
).AutoActivate().AsSelf().SingleInstance();

EUCore

What is EUCore?

General Backend Architecture

→ Net core 3.1
→ MongoDb Driver
→ Dapper

Getting Started

  1. Install the standard Nuget package into your ASP.NET Core application.
Package Manager : Install-Package EUCore
  1. You must define the database connection string in AppSettings.json.
"DatabaseConfig": {
    "DatabaseType": "dapper",
    "ConnectionString": "CONNECTION_STRING"
}
  1. Define Entity
public class UserEntity : EntityBase<int>
{
    public string Username { get; set; }
}
  1. Start using
private IRepository<UserEntity> _userRepository;
public WeatherForecastController(IRepository<UserEntity> userRepository)
{
    _userRepository = userRepository;
}

[HttpGet]
public IEnumerable<UserEntity> Get()
{
    return _userRepository.GetAll();
}

5.UnitOfWork

public class UnitOfWorkManager : UnitofWorkManagerBase
{
 
    public UnitOfWorkManager(IComponentContext context,AppSettings appSettings) : base(appSettings,context)
    {
      protected override DbConnection CreateConnection()
      {
          return new SqlConnection();
      }
    }
 
}

6.Dependecy

builder.RegisterModule(new EUCoreModule(appSettings));
builder.RegisterType<UnitOfWorkManager>().As<IUnitOfWorkManager>().As<IRepositoryManager>().InstancePerLifetimeScope();
builder.Register(c => new RuntimeInitializer()
    .DefaultMapper(typeof(DefaultEntityMapper<>))
    .SetDialect<MySqlDialect>()//SqlServerDialect or MySqlDialect
).AutoActivate().AsSelf().SingleInstance();

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.18 124 8/24/2020
1.0.17 102 8/24/2020
1.0.16 107 8/24/2020
1.0.15 102 8/24/2020
1.0.14 101 8/24/2020
1.0.13 109 8/24/2020
1.0.12 158 8/24/2020
1.0.11 170 8/24/2020
1.0.10 160 7/19/2020
1.0.9 155 7/13/2020
1.0.8 148 7/13/2020
1.0.7 154 7/13/2020
1.0.6 158 7/13/2020
1.0.5 228 7/13/2020
1.0.4 218 7/3/2020
1.0.3 248 7/3/2020
1.0.2 219 6/29/2020
1.0.1 234 6/26/2020
1.0.0 192 6/26/2020
1.0.0-alpha 142 6/26/2020