public bool SaveUpdateList <T1, T2, T3, T4>(List <T1> entity1, bool isSaveT1, List <T2> entity2, bool isSaveT2, List <T3> entity3, bool isSaveT3, List <T4> entity4, bool isSaveT4, out T1 @identity1, out T2 @identity2, out T3 @identity3, out T4 @identity4) where T1 : class where T2 : class where T3 : class where T4 : class { bool @bool = false; @identity1 = null; @identity2 = null; @identity3 = null; @identity4 = null; InterfaceRepoSaveUpdateList repoSaveUpdateList = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdateList.SaveUpdateList <T1, T2, T3, T4>(entity1, isSaveT1, entity2, isSaveT2, entity3, isSaveT3, entity4, isSaveT4); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @identity1 = (T1)resultRepo.ReturnValue[0].ReturnValue; @identity2 = (T2)resultRepo.ReturnValue[1].ReturnValue; @identity3 = (T3)resultRepo.ReturnValue[2].ReturnValue; @identity4 = (T4)resultRepo.ReturnValue[3].ReturnValue; @bool = true; } return(@bool); }
public bool SaveUpdateDelete <T1, T2, T3, T4>(T1 entity1, EnumSaveUpdateDelete enumSUDT1, T2 entity2, EnumSaveUpdateDelete enumSUDT2, T3 entity3, EnumSaveUpdateDelete enumSUDT3, T4 entity4, EnumSaveUpdateDelete enumSUDT4, out T1 @identity1, out T2 @identity2, out T3 @identity3, out T4 @identity4) where T1 : class where T2 : class where T3 : class where T4 : class { bool @bool = false; @identity1 = null; @identity2 = null; @identity3 = null; @identity4 = null; InterfaceRepoSaveUpdateDelete repoSaveUpdateDelete = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdateDelete.SaveUpdateDelete <T1, T2, T3, T4>(entity1, enumSUDT1, entity2, enumSUDT2, entity3, enumSUDT3, entity4, enumSUDT4); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @identity1 = (T1)resultRepo.ReturnValue[0].ReturnValue; @identity2 = (T2)resultRepo.ReturnValue[1].ReturnValue; @identity3 = (T3)resultRepo.ReturnValue[2].ReturnValue; @identity4 = (T4)resultRepo.ReturnValue[3].ReturnValue; @bool = true; } return(@bool); }
public bool Save <T1, T2, T3, T4, T5>(T1 entity1, T2 entity2, T3 entity3, T4 entity4, T5 entity5, out T1 identity1, out T2 identity2, out T3 identity3, out T4 identity4, out T5 identity5) where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class { bool @bool = false; @identity1 = null; @identity2 = null; @identity3 = null; @identity4 = null; @identity5 = null; InterfaceRepoSave repoSave = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSave.Save <T1, T2, T3, T4, T5>(entity1, entity2, entity3, entity4, entity5); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @identity1 = (T1)resultRepo.ReturnValue[0].ReturnValue; @identity2 = (T2)resultRepo.ReturnValue[1].ReturnValue; @identity3 = (T3)resultRepo.ReturnValue[2].ReturnValue; @identity4 = (T4)resultRepo.ReturnValue[3].ReturnValue; @identity5 = (T5)resultRepo.ReturnValue[4].ReturnValue; @bool = true; } return(@bool); }
public bool DeleteList <T>(List <int> iDIdentity) where T : class { bool @bool = false; InterfaceRepoDeleteList repoWrapper = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoWrapper.DeleteList <T>(iDIdentity); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool UpdateList <T>(List <T> entity) where T : class { bool @bool = false; InterfaceRepoUpdateList repoUpdateList = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoUpdateList.UpdateList <T>(entity); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool SaveUpdate <T>(T entity, bool isSaveT) where T : class { bool @bool = false; InterfaceRepoSaveUpdate repoSaveUpdate = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdate.SaveUpdate <T>(entity, isSaveT); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool DeleteActiveBool <T1, T2>(int IDIdentity1, int IDIdentity2) where T1 : class where T2 : class { bool @bool = false; InterfaceRepoDeleteActiveBool repoWrapper = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoWrapper.DeleteActiveBool <T1, T2>(IDIdentity1, IDIdentity2); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool DeleteList <T1, T2>(List <T1> entity1, List <T2> entity2) where T1 : class where T2 : class { bool @bool = false; InterfaceRepoDeleteList repoWrapper = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoWrapper.DeleteList <T1, T2>(entity1, entity2); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool Update <T1, T2>(T1 entity1, T2 entity2) where T1 : class where T2 : class { bool @bool = false; InterfaceRepoUpdate repoUpdate = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoUpdate.Update <T1, T2>(entity1, entity2); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool SaveUpdateDelete <T>(T entity, EnumSaveUpdateDelete enumSUDT, out T @identity) where T : class { bool @bool = false; @identity = null; InterfaceRepoSaveUpdateDelete repoSaveUpdateDelete = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdateDelete.SaveUpdateDelete <T>(entity, enumSUDT); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { identity = (T)resultRepo.ReturnValue[0].ReturnValue; @bool = true; } return(@bool); }
public bool UpdateList <T1, T2, T3>(List <T1> entity1, List <T2> entity2, List <T3> entity3) where T1 : class where T2 : class where T3 : class { bool @bool = false; InterfaceRepoUpdateList repoUpdateList = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoUpdateList.UpdateList <T1, T2, T3>(entity1, entity2, entity3); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool Delete <T1, T2, T3>(T1 entity1, T2 entity2, T3 entity3) where T1 : class where T2 : class where T3 : class { bool @bool = false; InterfaceRepoDelete repoWrapper = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoWrapper.Delete <T1, T2, T3>(entity1, entity2, entity3); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool SaveUpdateList <T>(List <T> entity, bool isSaveT, out T @identity) where T : class { bool @bool = false; @identity = null; InterfaceRepoSaveUpdateList repoSaveUpdateList = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdateList.SaveUpdateList <T>(entity, isSaveT); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { identity = (T)resultRepo.ReturnValue[0].ReturnValue; @bool = true; } return(@bool); }
public bool UpdateAll <T1, T2, T3, T4>(T1 entity1, T2 entity2, T3 entity3, T4 entity4) where T1 : class where T2 : class where T3 : class where T4 : class { bool @bool = false; InterfaceRepoUpdateAll repoUpdateAll = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoUpdateAll.UpdateAll <T1, T2, T3, T4>(entity1, entity2, entity3, entity4); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool DeleteList <T1, T2, T3, T4>(List <int> iDIdentity1, List <int> iDIdentity2, List <int> iDIdentity3, List <int> iDIdentity4) where T1 : class where T2 : class where T3 : class where T4 : class { bool @bool = false; InterfaceRepoDeleteList repoWrapper = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoWrapper.DeleteList <T1, T2, T3, T4>(iDIdentity1, iDIdentity2, iDIdentity3, iDIdentity4); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool SaveUpdateList <T1, T2, T3, T4>(List <T1> entity1, bool isSaveT1, List <T2> entity2, bool isSaveT2, List <T3> entity3, bool isSaveT3, List <T4> entity4, bool isSaveT4) where T1 : class where T2 : class where T3 : class where T4 : class { bool @bool = false; InterfaceRepoSaveUpdateList repoSaveUpdateList = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdateList.SaveUpdateList <T1, T2, T3, T4>(entity1, isSaveT1, entity2, isSaveT2, entity3, isSaveT3, entity4, isSaveT4); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool Delete <T1, T2, T3, T4, T5>(int IDIdentity1, int IDIdentity2, int IDIdentity3, int IDIdentity4, int IDIdentity5) where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class { bool @bool = false; InterfaceRepoDelete repoWrapper = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoWrapper.Delete <T1, T2, T3, T4, T5>(IDIdentity1, IDIdentity2, IDIdentity3, IDIdentity4, IDIdentity5); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool SaveUpdate <T1, T2, T3, T4, T5>(T1 entity1, bool isSaveT1, T2 entity2, bool isSaveT2, T3 entity3, bool isSaveT3, T4 entity4, bool isSaveT4, T5 entity5, bool isSaveT5) where T1 : class where T2 : class where T3 : class where T4 : class where T5 : class { bool @bool = false; InterfaceRepoSaveUpdate repoSaveUpdate = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdate.SaveUpdate <T1, T2, T3, T4, T5>(entity1, isSaveT1, entity2, isSaveT2, entity3, isSaveT3, entity4, isSaveT4, entity5, isSaveT5); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @bool = true; } return(@bool); }
public bool SaveUpdateDelete <T1, T2>(T1 entity1, EnumSaveUpdateDelete enumSUDT1, T2 entity2, EnumSaveUpdateDelete enumSUDT2, out T1 @resultEntity1, out T2 @resultEntity2) where T1 : class where T2 : class { bool @bool = false; @resultEntity1 = null; @resultEntity2 = null; InterfaceRepoSaveUpdateDelete repoSaveUpdateDelete = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdateDelete.SaveUpdateDelete <T1, T2>(entity1, enumSUDT1, entity2, enumSUDT2); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @resultEntity1 = (T1)resultRepo.ReturnValue[0].ReturnValue; @resultEntity2 = (T2)resultRepo.ReturnValue[1].ReturnValue; @bool = true; } return(@bool); }
public bool SaveUpdateList <T1, T2>(List <T1> entity1, bool isSaveT1, List <T2> entity2, bool isSaveT2, out T1 @resultEntity1, out T2 @resultEntity2) where T1 : class where T2 : class { bool @bool = false; @resultEntity1 = null; @resultEntity2 = null; InterfaceRepoSaveUpdateList repoSaveUpdateList = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdateList.SaveUpdateList <T1, T2>(entity1, isSaveT1, entity2, isSaveT2); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @resultEntity1 = (T1)resultRepo.ReturnValue[0].ReturnValue; @resultEntity2 = (T2)resultRepo.ReturnValue[1].ReturnValue; @bool = true; } return(@bool); }
public bool SaveUpdate <T1, T2, T3>(T1 entity1, bool isSaveT1, T2 entity2, bool isSaveT2, T3 entity3, bool isSaveT3, out T1 @identity1, out T2 @identity2, out T3 @identity3) where T1 : class where T2 : class where T3 : class { bool @bool = false; @identity1 = null; @identity2 = null; @identity3 = null; InterfaceRepoSaveUpdate repoSaveUpdate = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveUpdate.SaveUpdate <T1, T2, T3>(entity1, isSaveT1, entity2, isSaveT2, entity3, isSaveT3); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @identity1 = (T1)resultRepo.ReturnValue[0].ReturnValue; @identity2 = (T2)resultRepo.ReturnValue[1].ReturnValue; @identity3 = (T3)resultRepo.ReturnValue[2].ReturnValue; @bool = true; } return(@bool); }
public bool SaveList <T1, T2, T3>(List <T1> entity1, List <T2> entity2, List <T3> entity3, out T1 identity1, out T2 identity2, out T3 identity3) where T1 : class where T2 : class where T3 : class { bool @bool = false; @identity1 = null; @identity2 = null; @identity3 = null; InterfaceRepoSaveList repoSaveList = new RepoWrapper(new MirrorDBContext()); var resultRepo = repoSaveList.SaveList <T1, T2, T3>(entity1, entity2, entity3); if (resultRepo.IsSuccessConnection & resultRepo.IsSuccessQuery) { @identity1 = (T1)resultRepo.ReturnValue[0].ReturnValue; @identity2 = (T2)resultRepo.ReturnValue[1].ReturnValue; @identity3 = (T3)resultRepo.ReturnValue[2].ReturnValue; @bool = true; } return(@bool); }