EUCore 1.0.11

Suggested Alternatives

EUCore 1.0.10

There is a newer version of this package available.
See the version list below for details.
dotnet add package EUCore --version 1.0.11
NuGet\Install-Package EUCore -Version 1.0.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EUCore" Version="1.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EUCore --version 1.0.11
#r "nuget: EUCore, 1.0.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EUCore as a Cake Addin
#addin nuget:?package=EUCore&version=1.0.11

// Install EUCore as a Cake Tool
#tool nuget:?package=EUCore&version=1.0.11

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();
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.18 537 8/24/2020
1.0.17 460 8/24/2020
1.0.16 474 8/24/2020
1.0.15 444 8/24/2020
1.0.14 456 8/24/2020
1.0.13 470 8/24/2020
1.0.12 589 8/24/2020
1.0.11 581 8/24/2020
1.0.10 536 7/19/2020
1.0.9 512 7/13/2020
1.0.8 538 7/13/2020
1.0.7 530 7/13/2020
1.0.6 512 7/13/2020
1.0.5 579 7/13/2020
1.0.4 588 7/3/2020
1.0.3 647 7/3/2020
1.0.2 614 6/29/2020
1.0.1 629 6/26/2020
1.0.0 612 6/26/2020
1.0.0-alpha 321 6/26/2020