LibrameStandard.EntityFrameworkCore.MsSqlServer
4.20.1808.271
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package LibrameStandard.EntityFrameworkCore.MsSqlServer --version 4.20.1808.271
NuGet\Install-Package LibrameStandard.EntityFrameworkCore.MsSqlServer -Version 4.20.1808.271
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="LibrameStandard.EntityFrameworkCore.MsSqlServer" Version="4.20.1808.271" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibrameStandard.EntityFrameworkCore.MsSqlServer --version 4.20.1808.271
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LibrameStandard.EntityFrameworkCore.MsSqlServer, 4.20.1808.271"
#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 LibrameStandard.EntityFrameworkCore.MsSqlServer as a Cake Addin #addin nuget:?package=LibrameStandard.EntityFrameworkCore.MsSqlServer&version=4.20.1808.271 // Install LibrameStandard.EntityFrameworkCore.MsSqlServer as a Cake Tool #tool nuget:?package=LibrameStandard.EntityFrameworkCore.MsSqlServer&version=4.20.1808.271
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
LibrameStandard
Install LibrameStandard (The New Version: 4.20.1808.271)
To install LibrameStandard, run the following command in the Package Manager Console
PM> Install-Package LibrameStandard
Use DependencyInjection
var services = new ServiceCollection();
Register LibrameStandard
services.AddLibrameStandard(options =>
{
// Algorithm Extension
options.PostConfigureAlgorithm = opts => { ... };
// Drawing Extension
options.PostConfigureDrawing = opts => { ... };
// Entity Extension
options.PostConfigureEntity = opts => { ... };
// Network Extension
options.PostConfigureNetwork = opts => { ... };
// Platform Extension
options.PostConfigurePlatform = opts => { ... };
});
Build ServiceProvider
var serviceProvider = services.BuildServiceProvider();
1 Algorithm Extension
Configure Extension
......
options.PostConfigureAlgorithm = opts =>
{
// Reset key string refer to ResetAlgorithmExtensionOptionsTests.cs
opts.Identifier = "...";
};
......
Use Extension
// Hash Algorithm
var hash = serviceProvider.GetRequiredService<IHashAlgorithm>();
var md5 = hash.Md5("str");
var sha1 = hash.Sha1("str");
......
// HMAC Hash Algorithm
var hmacHash = serviceProvider.GetRequiredService<IHmacHashAlgorithm>();
var hmacmd5 = hmacHash.HmacMd5("str");
var hmacsha1 = hmacHash.HmacSha1("str");
......
// Symmetry Algorithm
var sym = serviceProvider.GetRequiredService<ISymmetryAlgorithm>();
var aes = sym.ToAes("str");
// sym.FromAes(aes);
......
// Rsa AsymmetryAlgorithm
var asym = serviceProvider.GetRequiredService<IRsaAsymmetryAlgorithm>();
var rsa = asym.ToRsa("str");
// asym.FromRsa(rsa);
2 Drawing Extension (based SkiaSharp)
Use Extension
// Captcha
var captcha = DateTime.Now.ToString("HHmm");
var drawing = serviceProvider.GetRequiredService<ICaptchaDrawing>();
var savePath = drawing.Paths.AppPath.AppendPath(@"..\..\temp\captcha.png");
// await drawing.DrawFile(captcha, savePath);
// Scale: Single file
var drawing = serviceProvider.GetRequiredService<IScaleDrawing>();
var imagePath = drawing.Paths.AppPath.AppendPath(@"..\..\temp\eso1004a.jpg");
// await drawing.DrawFile(imagePath);
......
// Watermark
var drawing = serviceProvider.GetRequiredService<IWatermarkDrawing>();
var imagePath = drawing.Paths.AppPath.AppendPath(@"..\..\temp\eso1004a.jpg");
var savePath = drawing.Paths.AppPath.AppendPath(@"..\..\temp\eso1004a-watermark.png");
// await drawing.DrawFile(imagePath, savePath);
3 Entity Extension
Install Extensions
PM> Install-Package LibrameStandard.EntityFrameworkCore.MsSqlServer
Configure Extension
......
options.PostConfigureEntity = opts =>
{
opts.DbSources.Add(new EntityExtensionOptions.DbSourceOptions
{
// Register MSSQLServer EntityProvider
EntityProviderTypeName = typeof(MsSqlServerEntityProvider).AsAssemblyQualifiedNameWithoutVCP(),
EntityProviderOptionsBuilderFactory = nameof(MsSqlServerEntityProviderOptionsBuilderFactory),
Connection = new EntityExtensionOptions.ConnectionOptions
{
DefaultString = TestHelper.DefaultSqlServerConnectionString,
// If use read/write separation, otherwise, keep empty
WriteString = TestHelper.DefaultSqlServerWriteConnectionString,
// Enable or Disable
WriteSeparation = true
},
// Configure SQLServer DbContext contain many references Entities
// or extract SQLServer DbContext contain many DbSet<Entity> properties
Automapping = new EntityExtensionOptions.AutomappingOptions
{
EntityTypeNames = new List<string>
{
typeof(Article).AsAssemblyQualifiedNameWithoutVCP()
},
// If ArticleMap in the same assembly (with Article), you can ignore it
//EntityConfiguratorAssemblies = new List<string>
//{
//typeof(Article).AsAssemblyName().Name
//}
}
});
};
......
......
services.AddLibrameStandard(options => {...}, (extensions, options) =>
{
// Use MSSQLServer (Supported InMemory/MsSqlServer/MySql/Sqlite)
extensions.AddStandardExtensionsWithEfCore(options).ApplyMsSqlServer();
});
......
Note: Support Databases
Database | EntityProviderTypeName | EntityProviderOptionsBuilderFactory | Assembly | WriteSeparation
- | :-: | :-: | :-: | -:
MsSqlServer | MsSqlServerEntityProvider| MsSqlServerEntityProviderOptionsBuilderFactory | LibrameStandard.EntityFrameworkCore.MsSqlServer | True
MySql | DefaultEntityProvider| MySqlEntityProviderOptionsBuilderFactory | LibrameStandard.EntityFrameworkCore.MySql | BUG
Sqlite | DefaultEntityProvider| SqliteEntityProviderOptionsBuilderFactory | LibrameStandard.EntityFrameworkCore.Sqlite | False
InMemory | DefaultEntityProvider| InMemoryEntityProviderOptionsBuilderFactory | LibrameStandard.EntityFrameworkCore.InMemory | False
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- LibrameStandard (>= 4.20.1808.271)
- LibrameStandard.EntityFrameworkCore (>= 4.20.1808.271)
- Microsoft.EntityFrameworkCore.SqlServer (>= 2.1.2)
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 |
---|
EntityFrameworkCore for LibrameStandard.Extensions.Entity by MSSQLServer