private bool DoUpdateStoreState(Miles.Coro.ORM.Repository repository, Enum.StoreState storeState) { if (repository.Update <Tb_store_state>() .Set() .Field(Model.Tb_store_state.Table.State, (int)storeState) .EndSet() .Save() > 0) { return(true); } return(false); }
private bool DoSaveCheckStore(Miles.Coro.ORM.Repository repository, List <Model.Info_store_check> list) { foreach (Model.Info_store_check info in list) { if (repository.Update <Tb_store_check>() .Set().Field(Model.Tb_store_check.Table.Check_Qty, info.Check_Qty) .EndSet() .Where() .And(Model.Tb_store_check.Table.Mtl_Code, info.Mtl_Code) .EndWhere() .Save() < 1) { return(false); } } return(true); }