public void Update(IFirstOrm <IDbEntity> first) { if (typeof(Type) == typeof(DbUserEntity)) { first.Update(new DbUserEntity()); } else if (typeof(Type) == typeof(DbUserInfoEntity)) { first.Update(new DbUserInfoEntity()); } else { throw new NotImplementedException("Не тип БД"); } }
public void AddUser(DbUserEntity user, DbUserInfoEntity userInfo) { user.UserInfoId = userInfo.Id; _firstUserOrm.Update(user); _firstUserInfoOrm.Update(userInfo); }
public void Update(DbUserEntity user, DbUserInfoEntity info) { _usersDb.Update(user); _usersInfosDb.Update(info); }
public void UpdateUserInfo(DbUserInfoEntity dbUserInfoEntity) { _iFirstOrmDbUserInfoEntity.Update(dbUserInfoEntity); }