SmartEF 0.0.1

There is a newer version of this package available.
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
#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

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 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.

Version Downloads Last updated
0.0.3 814 12/21/2018
0.0.2 1,003 12/13/2017
0.0.1 974 12/12/2017