示例#1
0
        public StoreEntity Get_Object_Store_By_StoreID(string id)
        {
            if (dbContext == null)
            {
                dbContext = new FoodDeliveryEntities();
            }
            var obj = dbContext.GET_OBJECT_STORE_BY_STOREID(id).FirstOrDefault();

            StoreEntity entity = new StoreEntity
            {
                StoreID       = "" + obj.StoreID,
                StoreName     = obj.StoreName,
                Address       = obj.Address,
                OpenDoor      = "" + obj.OpenDoor,
                CloserDoor    = "" + obj.CloserDoor,
                ServiceCharge = (decimal)obj.ServiceCharge,
                ShippingFee   = (decimal)obj.ShippingFee,
                Manner        = obj.Manner,
                Website       = obj.Website,
                StoreType     = obj.StoreType,
                StoreBanner   = obj.StoreBanner,
                Rating        = (double)obj.Rating,
                Evaluation    = (int)obj.Evaluation,
                ConditionShip = (long)obj.ConditionShip,
                StartDate     = (int)obj.StartDate,
                EndDate       = (int)obj.EndDate,
            };


            return(entity);
        }