Пример #1
0
        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);
        }
Пример #2
0
        public long ImportFrom(TableSchama schama, bool truncate)
        {
            var rows = DBAccessor.ImportTable(schama, this, truncate);

            return(rows >= 0 ? rows : -4);
        }