本文整理汇总了C#中IConfiguration.ObjectClass方法的典型用法代码示例。如果您正苦于以下问题:C# IConfiguration.ObjectClass方法的具体用法?C# IConfiguration.ObjectClass怎么用?C# IConfiguration.ObjectClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IConfiguration
的用法示例。
在下文中一共展示了IConfiguration.ObjectClass方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(CsCascadedDeleteReaddChildReferenceTestCase.Item)).ObjectField
("name").Indexed(true);
config.ObjectClass(typeof(CsCascadedDeleteReaddChildReferenceTestCase.ItemParent)
).ObjectField("child").Indexed(true);
}
示例2: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(TwoLevelIndexTestCase.Parent1)).ObjectField("child").Indexed
(true);
config.ObjectClass(typeof(TwoLevelIndexTestCase.Child1)).ObjectField("id").Indexed
(true);
}
示例3: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof (Holder)).CascadeOnUpdate(true
);
config.ObjectClass(typeof (Holder)).CascadeOnDelete(true
);
}
示例4: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(ExceptionsInCallbackTestCase.Holder)).CascadeOnUpdate(true
);
config.ObjectClass(typeof(ExceptionsInCallbackTestCase.Holder)).CascadeOnDelete(true
);
}
示例5: Configure
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(ReAddCascadedDeleteTestCase.Item)).CascadeOnDelete(true
);
config.ObjectClass(typeof(ReAddCascadedDeleteTestCase.Item)).ObjectField("_name")
.Indexed(true);
}
示例6: Configure
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof (CreateIndexInheritedTestCase
)).ObjectField("i_int").Indexed(true);
config.ObjectClass(typeof (CreateIndexFor)).ObjectField
("i_name").Indexed(true);
}
示例7: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(CascadeOnDeleteHierarchyTestCase.Item)).CascadeOnDelete
(true);
config.ObjectClass(typeof(CascadeOnDeleteHierarchyTestCase.SubItem));
base.Configure(config);
}
示例8: Configure
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(Db4objects.Db4o.Tests.Common.Concurrency.CreateIndexInheritedTestCase
)).ObjectField("i_int").Indexed(true);
config.ObjectClass(typeof(CreateIndexInheritedTestCase.CreateIndexFor)).ObjectField
("i_name").Indexed(true);
}
示例9: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof (Item)).ObjectField
("name").Indexed(true);
config.ObjectClass(typeof (ItemParent)
).ObjectField("child").Indexed(true);
}
示例10: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(ListTypeHandlerCascadedDeleteTestCase.Item)).CascadeOnDelete
(true);
config.ObjectClass(typeof(ArrayList)).CascadeOnDelete(true);
config.RegisterTypeHandler(new SingleClassTypeHandlerPredicate(typeof(ArrayList))
, new CollectionTypeHandler());
}
示例11: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.ObjectClass(typeof(UseSecondBestIndexTestCase.Parent)).ObjectField("id").Indexed
(true);
config.ObjectClass(typeof(UseSecondBestIndexTestCase.Child)).ObjectField("id").Indexed
(true);
config.Diagnostic().AddListener(new _IDiagnosticListener_17(this));
}
示例12: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
config.Diagnostic().AddListener(new _IDiagnosticListener_24(this));
config.ObjectClass(typeof(ObjectFieldDoesNotExistTestCase.Item)).ObjectField(BogusFieldName
).Indexed(true);
config.ObjectClass(typeof(ObjectFieldDoesNotExistTestCase.Item)).ObjectField("_name"
).Indexed(true);
}
示例13: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
base.Configure(config);
config.ObjectClass(typeof(DebugBTreeNodeMarshalledLength.Item)).ObjectField("_int"
).Indexed(true);
config.ObjectClass(typeof(DebugBTreeNodeMarshalledLength.Item)).ObjectField("_string"
).Indexed(true);
}
示例14: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
base.Configure(config);
config.ObjectClass(typeof (Item)).ObjectField("_int"
).Indexed(true);
config.ObjectClass(typeof (Item)).ObjectField("_string"
).Indexed(true);
}
示例15: Configure
/// <exception cref="System.Exception"></exception>
protected override void Configure(IConfiguration config)
{
// configured depth should be ignored by ta provider
config.ObjectClass(typeof(TransparentActivationDepthTestCase.TAAware)).MinimumActivationDepth
(42);
config.ObjectClass(typeof(TransparentActivationDepthTestCase.NonTAAware)).MinimumActivationDepth
(42);
}