当前位置: 首页>>代码示例>>C#>>正文


C# IConfiguration.ObjectClass方法代码示例

本文整理汇总了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);
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:8,代码来源:CsCascadedDeleteReaddChildReferenceTestCase.cs

示例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);
		}
开发者ID:Galigator,项目名称:db4o,代码行数:8,代码来源:TwoLevelIndexTestCase.cs

示例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
         );
 }
开发者ID:masroore,项目名称:db4o,代码行数:8,代码来源:ExceptionsInCallbackTestCase.cs

示例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
				);
		}
开发者ID:erdincay,项目名称:db4o,代码行数:8,代码来源:ExceptionsInCallbackTestCase.cs

示例5: Configure

		protected override void Configure(IConfiguration config)
		{
			config.ObjectClass(typeof(ReAddCascadedDeleteTestCase.Item)).CascadeOnDelete(true
				);
			config.ObjectClass(typeof(ReAddCascadedDeleteTestCase.Item)).ObjectField("_name")
				.Indexed(true);
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:7,代码来源:ReAddCascadedDeleteTestCase.cs

示例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);
 }
开发者ID:masroore,项目名称:db4o,代码行数:7,代码来源:CreateIndexInheritedTestCase.cs

示例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);
		}
开发者ID:Galigator,项目名称:db4o,代码行数:8,代码来源:CascadeOnDeleteHierarchyTestCase.cs

示例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);
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:7,代码来源:CreateIndexInheritedTestCase.cs

示例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);
 }
开发者ID:masroore,项目名称:db4o,代码行数:8,代码来源:CsCascadedDeleteReaddChildReferenceTestCase.cs

示例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());
		}
开发者ID:erdincay,项目名称:db4o,代码行数:9,代码来源:ListTypeHandlerCascadedDeleteTestCase.cs

示例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));
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:UseSecondBestIndexTestCase.cs

示例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);
		}
开发者ID:bvangrinsven,项目名称:db4o-net,代码行数:9,代码来源:ObjectFieldDoesNotExistTestCase.cs

示例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);
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:DebugBTreeNodeMarshalledLength.cs

示例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);
 }
开发者ID:masroore,项目名称:db4o,代码行数:9,代码来源:DebugBTreeNodeMarshalledLength.cs

示例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);
		}
开发者ID:superyfwy,项目名称:db4o,代码行数:9,代码来源:TransparentActivationDepthTestCase.cs


注:本文中的IConfiguration.ObjectClass方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。