public void TestSchemaBuilder()
        {
            var builder = new SchemaBuilder();
            builder.AddDocumentTypeNames("Filter");

            builder.BeginDefineDocumentTypes();

            builder.AddDocumentTypeDescriptor(
                "Filter", "Filter",
                "Id", DbType.Int64,
                "Name", DbType.String,
                "QueryString", DbType.String,
                "IsDefault", DbType.Boolean,
                "IsNamed", DbType.Boolean,
                "Type", DbType.Int32
                );

            builder.AddIdentifierAliases(
                     "Filter",
                     "Filter.Id", "id",
                     "Filter.Name", "name",
                     "Filter.IsDefault", "isdefault");
            var desc = builder.Commit();
            var driver = new RamDriver();
            driver.Initialize(new DummyTracer(), new RamDriverSettings {Descriptor = desc});
        }
Beispiel #2
0
        /// <summary>
        /// Ctr.
        /// </summary>
        public RamDriverChangeset(RamDriver driver, DriverChangeBuffer changeBuffer, bool isBulk, DocumentDataContainer documentContainer, ColumnDataBase[] columnStores)
        {
            if (driver == null)
            {
                throw new ArgumentNullException("driver");
            }

            if (changeBuffer == null)
            {
                throw new ArgumentNullException("changeBuffer");
            }

            if (documentContainer == null)
            {
                throw new ArgumentNullException("documentContainer");
            }

            Driver            = driver;
            ChangeBuffer      = changeBuffer;
            IsBulk            = isBulk;
            ColumnStores      = columnStores;
            DocumentContainer = documentContainer;
        }
Beispiel #3
0
        /// <summary>
        /// Ctr.
        /// </summary>
        public RamDriverChangeset(RamDriver driver, DriverChangeBuffer changeBuffer, bool isBulk, DocumentDataContainer documentContainer, ColumnDataBase[] columnStores)
        {
            if (driver == null)
            {
                throw new ArgumentNullException("driver");
            }

            if (changeBuffer == null)
            {
                throw new ArgumentNullException("changeBuffer");
            }

            if (documentContainer == null)
            {
                throw new ArgumentNullException("documentContainer");
            }

            Driver = driver;
            ChangeBuffer = changeBuffer;
            IsBulk = isBulk;
            ColumnStores = columnStores;
            DocumentContainer = documentContainer;
        }