Hi to all,
I have Used Visual Studio 2010 Ultimate using c#. TypeID is Primary key with auto increment. I have used 2 type of layers a)Entity Layer (Get and set property field) b)DataAccess Layer (Conncetion string,insert,update,delete,etc)
My Req: Now i have set one text box and button.If i give Primary key Id it should bring the record If that primary key in DB.
My Code for your reference
//My Code for your reference
//Load CustomerType
private CustomerTypeEN LoadObject(IDataReader argReader)
{
CustomerTypeEN loItem = new CustomerTypeEN();
if (argReader["CTY_TypeID"] != null && argReader["CTY_TypeID"] != System.DBNull.Value)
loItem.TypeID = Convert.ToInt32(argReader["CTY_TypeID"]);
if (argReader[&quo ...
Go to the complete details ...