public void CopyTo(IPostgresEntity source) { (source as RegistEntity).ID = ID; (source as RegistEntity).Password = Password; (source as RegistEntity).Nickname = Nickname; (source as RegistEntity).PhoneNumber = PhoneNumber; }
public void CopyTo(IPostgresEntity source) { (source as LoginEntity).ID = ID; (source as LoginEntity).Password = Password; }
public IPostgresEntity QueryStart(NpgsqlConnection conn, IPostgresEntity source) { throw new NotImplementedException(); }
public void CopyTo(IPostgresEntity source) { (source as ReturnCertEntity).PublicKey = PublicKey; (source as ReturnCertEntity).RefreshKey = RefreshKey; }
public static async Task <IPostgresEntity> ExecuteAsync(IPostgresQuery service, IPostgresEntity queryData, Postgres setting) { IPostgresEntity result; using (NpgsqlConnection conn = new NpgsqlConnection( "Server=" + setting.Host + ";Port=" + setting.Port + ";User ID=" + setting.UserId + ";Database=" + setting.DatabaseName + ";Password="******";Enlist=true")) { //PostgreSQLへ接続 await conn.OpenAsync(); result = service.QueryStart(conn, queryData); await conn.CloseAsync(); } return(result); }