コード例 #1
0
        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});
        }
コード例 #2
0
ファイル: RamDriver.cs プロジェクト: adrobyazko-softheme/PQL
        /// <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;
        }