internal static void FillStallDetails(DataSet dsFields, Stall Obj) { DataRow row = dsFields.Tables[0].Rows[0]; Obj.IsNew = false; FillStallEntityObject(Obj.Fields, row); }
internal static List <Stall> MapStallAsListOfBLObjects(DataSet dsFields) { List <Stall> lst = new List <Stall>(); Stall BLObject; foreach (DataRow row in dsFields.Tables[0].Rows) { BLObject = new Stall(); BLObject.IsNew = false; FillStallEntityObject(BLObject.Fields, row); lst.Add(BLObject); } return(lst); }
internal object saveStall(Stall Obj, SqlTransaction trans) { try { object ID = DalBase <StallEntity> .Save(Obj.Fields, trans, Obj.IsNew); Obj.IsNew = false; return(ID); } catch (Exception ex) { throw new Exception(ex.Message); } }