EUCore 1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EUCore --version 1.0.4
NuGet\Install-Package EUCore -Version 1.0.4
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.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EUCore --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EUCore, 1.0.4"
#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.4
// Install EUCore as a Cake Tool
#tool nuget:?package=EUCore&version=1.0.4
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. |
.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 (>= 1.50.5)
- Dapper.SqlBuilder (>= 1.50.5)
- DapperExtensions.DotnetCore (>= 1.0.1)
- Dommel (>= 2.0.0-beta4)
- JetBrains.Annotations (>= 2020.1.0)
- MongoDB.Driver (>= 2.10.4)
- MongoDB.Driver.Core (>= 2.10.4)
- Newtonsoft.Json (>= 12.0.3)
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 | 540 | 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 |