Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / C#

Using the Microsoft Enterprise Library Data Access Application Block – Part I

Rate me:
Please Sign up or sign in to vote.
4.29/5 (16 votes)
4 Aug 2009CPOL4 min read 164K   6K   61  
Using the Microsoft Enterprise Library Data Access Application Block to insert data into a database.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Robin.Sample.Business.Entities
{
    
    [Serializable]
    [DataContract]
    public class User
    {
        [DataMember]
        public int UserID { get; set; }

        [DataMember]
        public string UserName { get; set; }

        [DataMember]
        public string UserPassword { get; set; }

        [DataMember]
        public string FirstName { get; set; }

        [DataMember]
        public string LastName { get; set; }
        
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions