iek.Framework.DataMapper 1.0.0

DataMapper T4

Install-Package iek.Framework.DataMapper -Version 1.0.0
dotnet add package iek.Framework.DataMapper --version 1.0.0
<PackageReference Include="iek.Framework.DataMapper" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iek.Framework.DataMapper --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

This framework contains 2 classes

1. T4 entities generator: Creates a connection with the db, selects all the tables and creates a entity for every table in C#

  The T4 needs 2 appSettings

  1. "DataMapperEntityNamespace" the namespace entities
  2. "DataMapperEntityPath" the folder path to save the entities

  And the connectionString

  <add name="DataMapperConnectionString" connectionString="Server=tcp:;Database=MyDB;User ID=MyUser;Password=123;" providerName="System.Data.SqlClient" />


2. ORM Generic Pattern Context: Is like a EntityFramework but with ADO.NET on generic reporistory pattern.

  The Context needs one appSetting and the connectionString

  1. "DataMapperEntityNamespace"
  2. "DataMapperConnectionString"

  User user = DataMapper.Context.Instance().TAsync<User>("GetUserById", new { IdUser = 1 }).Result;

  TAsync<User>: This is a generic method, you can use List<User> or a single entity to return the result
  GetUserById: name of you procedure in db
  IdUser: name of parameter in storedProcedure, needs to be the same name and data type



This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 566 10/4/2016