Beispiel #1
0
 private BusinessObjects.AuthType MapToParents(DataRow dr)
 {
     BusinessObjects.AuthType AuthType = new BusinessObjects.AuthType();
     AuthType.Auth_Id = Convert.ToInt32(dr["Auth_Id"]);
     AuthType.Auth_Type = Convert.ToString(dr["AuthType"]);
     return AuthType;
 }
Beispiel #2
0
 public BusinessObjects.AuthType Read(long ID)
 {
     BusinessObjects.AuthType AuthType = new BusinessObjects.AuthType();
     List<SqlParameter> param = new List<SqlParameter>();
     param.Add(new SqlParameter("@Auth_Id", ID));
     DataTable dt = Read(param.ToArray(), "SP_AuthType_Read");
     if (dt.Rows.Count > 0)
     {
         AuthType = MapToParents(dt.Rows[0]);
     }
     return AuthType;
 }
Beispiel #3
0
 public BusinessObjects.AuthType Read(long ID)
 {
     BusinessObjects.AuthType AuthTypeItem = new BusinessObjects.AuthType();
     try
     {
         AuthTypeItem = (new DataAccess.AuthType()).Read(ID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return AuthTypeItem;
 }