SmartEF 0.0.1
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 SmartEF --version 0.0.1
NuGet\Install-Package SmartEF -Version 0.0.1
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="SmartEF" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SmartEF --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SmartEF, 0.0.1"
#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 SmartEF as a Cake Addin #addin nuget:?package=SmartEF&version=0.0.1 // Install SmartEF as a Cake Tool #tool nuget:?package=SmartEF&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SmartEF
Simple library with EF helpers
Install-Package SmartEF
Usage
Bellow a sample
class Program
{
static void Main(string[] args)
{
string dBTableName = Helper.GetDBTableName<MyTableEntity>();
string dBColumnName = Helper.GetDBColumnName<MyTableEntity>(nameof(MyTableEntity.Id));
string cmd1 = Helper.DeleteSQLCommand(new List<int> { 1, 2, 3 }, "dbo", dBTableName, dBColumnName);
string cmd2 = Helper.DeleteSQLCommand<MyTableEntity>(new List<int> { 1, 2, 3, 4 }, "dbo", a => a.Id);
string cmd3 = Helper.DeleteSQLCommand<MyTableEntity,int>(new List<int> { 1, 2, 3, 5 }, "dbo", a => a.Id);
string cmd4 = Helper.DeleteSQLCommand<MyTableEntity>(new List<int> { 1, 2, 3, 4, 5, 6 }, "dbo", nameof(MyTableEntity.Id));
string cmd5 = Helper.DeleteSQLCommand(new List<int> { 1, 2, 3, 4, 5, 6, 7 }, "dbo", (MyTableEntity a) => a.Id);
Console.WriteLine(cmd1);
Console.WriteLine(cmd2);
Console.WriteLine(cmd3);
Console.WriteLine(cmd4);
Console.WriteLine(cmd5);
Console.ReadKey();
}
}
[Table("MyTable")]
public class MyTableEntity
{
[Column("ID")]
public int Id { get; set; }
[Column("DESCRIPTION")]
public string Description { get; set; }
}
Danke
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.