EUCore 1.0.18
dotnet add package EUCore --version 1.0.18
NuGet\Install-Package EUCore -Version 1.0.18
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.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EUCore" Version="1.0.18" />
<PackageReference Include="EUCore" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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"
#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.
#:package EUCore@1.0.18
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EUCore&version=1.0.18
#tool nuget:?package=EUCore&version=1.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EUCore
What is EUCore?
General Backend Architecture
→ Net core 3.1 → MongoDb Driver → Dapper
Getting Started
- Install the standard Nuget package into your ASP.NET Core application.
Package Manager : Install-Package EUCore
- You must define the database connection string in AppSettings.json.
"DatabaseConfig": {
"DatabaseType": "dapper",
"ConnectionString": "CONNECTION_STRING"
}
- Define Entity
public class UserEntity : EntityBase<int>
{
public string Username { get; set; }
}
- 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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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.
-
.NETCoreApp 3.1
- Autofac (>= 4.8.1)
- Dapper (>= 2.0.35)
- Dapper.SqlBuilder (>= 2.0.35)
- DapperExtensions.DotnetCore (>= 1.0.1)
- Dommel (>= 2.0.0)
- JetBrains.Annotations (>= 2020.1.0)
- Newtonsoft.Json (>= 12.0.3)
- System.Data.SqlClient (>= 4.8.1)
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 | 766 | 8/24/2020 | |
| 1.0.17 | 657 | 8/24/2020 | |
| 1.0.16 | 653 | 8/24/2020 | |
| 1.0.15 | 633 | 8/24/2020 | |
| 1.0.14 | 663 | 8/24/2020 | |
| 1.0.13 | 656 | 8/24/2020 | |
| 1.0.12 | 908 | 8/24/2020 | |
| 1.0.11 | 900 | 8/24/2020 | |
| 1.0.10 | 722 | 7/19/2020 | |
| 1.0.9 | 705 | 7/13/2020 | |
| 1.0.8 | 740 | 7/13/2020 | |
| 1.0.7 | 719 | 7/13/2020 | |
| 1.0.6 | 723 | 7/13/2020 | |
| 1.0.5 | 902 | 7/13/2020 | |
| 1.0.4 | 911 | 7/3/2020 | |
| 1.0.3 | 978 | 7/3/2020 | |
| 1.0.2 | 938 | 6/29/2020 | |
| 1.0.1 | 965 | 6/26/2020 | |
| 1.0.0 | 928 | 6/26/2020 | |
| 1.0.0-alpha | 508 | 6/26/2020 |