Esempio n. 1
0
        public async Task <EntityManagerResult> AddColumn(string tableName, IColumn column)
        {
            var sql    = _sqlGenerator.AddColumnQuery(_databaseName, tableName, column);
            var result = new EntityManagerResult {
                ExecutedSql = sql
            };

            try
            {
                await ExecuteNonQueryAsync(sql);

                result.Success = true;
            }
            catch (Exception e)
            {
                result.Success      = false;
                result.ErrorMessage = e.Message;
            }

            return(result);
        }