public bool CreateTableBySchama(TableSchama source) { if (source == null) { throw new ArgumentNullException("parameter(source) is null!", "source"); } bool result = false; var command = source.GetCreateCommand(this.TableName); if (command != null) { result = DBAccessor.ExecuteSQLCommand(command) >= 0; } Fresh(); return(result); }
public long ImportFrom(TableSchama schama, bool truncate) { var rows = DBAccessor.ImportTable(schama, this, truncate); return(rows >= 0 ? rows : -4); }