Naweed Akram's Blog
<sharing: Knowledge />
XGENO.DBMapper - A new way of OR/DB Mapping

XGENO.DBMapper is a simple, easy-to-use and powerful OR Mapper (just 15KB) for your database queries. It is set of extension methods (on the SQL Connection), which execute a SQL query (simple, parameterized, stored procs etc.) and return the data as a list of .NET objects (classes that you have created).

 

Note: This is not a replacement for existing ORMs (Linq/NHibernate/XGENO.ORM etc.). This is useful when there are lots of stored procedures or dynamic SQL queries are involved, and performance is a critical factor.

More ...
Tags:  .NET,  C#,  VB.NET,  ASP.NET,  MVC,  Silverlight,  ORM Viewed:  3697       Comments:  1      


Introducing XGENO.ORM v.2.0

XGENO.ORM v.2.0 is a simple and easy to use high performant ORM tool for use with .NET 4.0 based projects (Win Forms, ASP.NET, WPF, Silverlight 3.0) against Microsoft SQL Server 2005/2008.

 

Consider a simple table structure as below:

Table Name: tb_Users

cod_UserName nvarchar(50) PRIMARY KEY
txt_FullName nvarchar(200)
txt_EmailAddress nvarchar(50)
dat_DateOfBirth datetime
num_Dependents int

 

Wouldn't it be just convenient, if you could do this:

 

User _user = new User();

_user.UserName = “naweed”;
_user.FullName = “Naweed Akram”;
_user.EmailAddress = “naweed@xgeno.com”;
_user.dOB = new DateTime(1976, 9, 6);
_user.Dependents = 3;

_user.Save(); //To save the newly created user

More ...
Tags:  .NET,  ORM Viewed:  2298       Comments:  0      


RSS Feed
Newsletter


Quick Links

Tags