Click here to Skip to main content
12,702,596 members (33,254 online)
Click here to Skip to main content

Stats

79.2K views
3.4K downloads
93 bookmarked
Posted

CRUD Operations using LINQ Entities

, 11 Jul 2009 CPOL
CRUD operations using LINQ Entities
LINQCrudWithEntities
LINQCrudWithEntities
App_Data
Sales.mdf
Sales_log.LDF
bin
LINQCrudWithEntities.dll
LINQCrudWithEntities.pdb
LINQtoSQLStoredProc.dll
LINQtoSQLStoredProc.pdb
LINQCrudWithEntities.csproj.user
Properties
LINQCrudWithEntities.suo
LINQCrudWithEntities
App_Data
Sales.mdf
Sales_log.LDF
bin
LINQCrudWithEntities.dll
LINQCrudWithEntities.pdb
LINQtoSQLStoredProc.dll
LINQtoSQLStoredProc.pdb
LINQCrudWithEntities.csproj.user
Properties
LINQCrudWithEntities.suo
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.Linq.Mapping;
using System.Data.Linq;
using System.Reflection;

namespace LINQCrudWithEntities
{
    [Table(Name = "Customer")]
    public class clsCustomerEntity
    {
        private int _CustomerId;
        private string _CustomerCode;
        private string _CustomerName;

        [Column(DbType = "nvarchar(50)")]
        public string CustomerCode
        {
            set
            {
                _CustomerCode = value;
            }
            get
            {
                return _CustomerCode;
            }
        }

        [Column(DbType = "nvarchar(50)")]
        public string CustomerName
        {
            set
            {
                _CustomerName = value;
            }
            get
            {
                return _CustomerName;
            }
        }

        [Column(DbType = "int", IsPrimaryKey = true,IsDbGenerated=true)]
        public int CustomerId
        {
            set
            {
                _CustomerId = value;
            }
            get
            {
                return _CustomerId;
            }
        }
    }
}

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)

Share

About the Author


You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 11 Jul 2009
Article Copyright 2009 by Shivprasad koirala
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid