Esempio n. 1
0
        internal static void FillStallDetails(DataSet dsFields, Stall Obj)
        {
            DataRow row = dsFields.Tables[0].Rows[0];

            Obj.IsNew = false;
            FillStallEntityObject(Obj.Fields, row);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
            }
        }