• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IEntityCore类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IEntityCore的典型用法代码示例。如果您正苦于以下问题:C# IEntityCore类的具体用法?C# IEntityCore怎么用?C# IEntityCore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IEntityCore类属于命名空间,在下文中一共展示了IEntityCore类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: SetRelatedEntityProperty

		/// <summary> Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection.</summary>
		/// <param name="propertyName">Name of the property.</param>
		/// <param name="entity">Entity to set as an related entity</param>
		/// <remarks>Used by prefetch path logic.</remarks>
		protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity)
		{
			switch(propertyName)
			{
				case "Address":
					this.Address = (AddressEntity)entity;
					break;
				case "AddressType":
					this.AddressType = (AddressTypeEntity)entity;
					break;
				case "BusinessEntity":
					this.BusinessEntity = (BusinessEntityEntity)entity;
					break;
				default:
					this.OnSetRelatedEntityProperty(propertyName, entity);
					break;
			}
		}
开发者ID:ck-lee,项目名称:RawDataAccessBencher,代码行数:22,代码来源:BusinessEntityAddressEntity.cs


示例2: SetRelatedEntity

 /// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
 {
     switch(fieldName)
     {
         case "Products":
             this.Products.Add((ProductEntity)relatedEntity);
             break;
         default:
             break;
     }
 }
开发者ID:jbijlsma,项目名称:LLBLGenPro_SS_Api_Razor_Templates,代码行数:14,代码来源:CategoryEntity.cs


示例3: UnsetRelatedEntity

 /// <summary> Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() </summary>
 /// <param name="relatedEntity">Instance to unset as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 /// <param name="signalRelatedEntityManyToOne">if set to true it will notify the manytoone side, if applicable.</param>
 protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne)
 {
     switch(fieldName)
     {
         case "Products":
             this.PerformRelatedEntityRemoval(this.Products, relatedEntity, signalRelatedEntityManyToOne);
             break;
         default:
             break;
     }
 }
开发者ID:jbijlsma,项目名称:LLBLGenPro_SS_Api_Razor_Templates,代码行数:15,代码来源:CategoryEntity.cs


示例4: SetRelatedEntity

 /// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
 {
     switch(fieldName)
     {
         case "AspnetUser":
             SetupSyncAspnetUser(relatedEntity);
             break;
         default:
             break;
     }
 }
开发者ID:MonoSoftware,项目名称:MonoX-Data-Access-Layer,代码行数:14,代码来源:AuditInfoEntity.cs


示例5: UnsetRelatedEntity

 /// <summary> Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() </summary>
 /// <param name="relatedEntity">Instance to unset as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 /// <param name="signalRelatedEntityManyToOne">if set to true it will notify the manytoone side, if applicable.</param>
 protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne)
 {
     switch(fieldName)
     {
         case "AspnetUser":
             DesetupSyncAspnetUser(false, true);
             break;
         default:
             break;
     }
 }
开发者ID:MonoSoftware,项目名称:MonoX-Data-Access-Layer,代码行数:15,代码来源:AuditInfoEntity.cs


示例6: SetRelatedEntity

 /// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
 {
     switch(fieldName)
     {
         case "AspnetUser":
             SetupSyncAspnetUser(relatedEntity);
             break;
         case "SnFriendListMembers":
             this.SnFriendListMembers.Add((SnFriendListMemberEntity)relatedEntity);
             break;
         default:
             break;
     }
 }
开发者ID:MonoSoftware,项目名称:MonoX-Data-Access-Layer,代码行数:17,代码来源:SnFriendListEntity.cs


示例7: SetRelatedEntity

		/// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
		/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
		/// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
		protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
		{
			switch(fieldName)
			{
				case "Product":
					SetupSyncProduct(relatedEntity);
					break;
				default:
					break;
			}
		}
开发者ID:perbrage,项目名称:RawDataAccessBencher,代码行数:14,代码来源:ProductReviewEntity.cs


示例8: SetRelatedEntityProperty

 /// <summary> Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection.</summary>
 /// <param name="propertyName">Name of the property.</param>
 /// <param name="entity">Entity to set as an related entity</param>
 /// <remarks>Used by prefetch path logic.</remarks>
 protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity)
 {
     switch(propertyName)
     {
         case "Customer":
             this.Customer = (CustomerEntity)entity;
             break;
         case "CustomerDemographic":
             this.CustomerDemographic = (CustomerDemographicEntity)entity;
             break;
         default:
             this.OnSetRelatedEntityProperty(propertyName, entity);
             break;
     }
 }
开发者ID:jhoekstrapiramidenl,项目名称:LLBLGenPro_SS_Api_Razor_Templates,代码行数:19,代码来源:CustomerCustomerDemoEntity.cs


示例9: UnsetRelatedEntity

 /// <summary> Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() </summary>
 /// <param name="relatedEntity">Instance to unset as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 /// <param name="signalRelatedEntityManyToOne">if set to true it will notify the manytoone side, if applicable.</param>
 protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne)
 {
     switch(fieldName)
     {
         case "Customer":
             DesetupSyncCustomer(false, true);
             break;
         case "CustomerDemographic":
             DesetupSyncCustomerDemographic(false, true);
             break;
         default:
             break;
     }
 }
开发者ID:jhoekstrapiramidenl,项目名称:LLBLGenPro_SS_Api_Razor_Templates,代码行数:18,代码来源:CustomerCustomerDemoEntity.cs


示例10: SetupSyncBusinessEntity

		/// <summary> setups the sync logic for member _businessEntity</summary>
		/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
		private void SetupSyncBusinessEntity(IEntityCore relatedEntity)
		{
			if(_businessEntity!=relatedEntity)
			{
				DesetupSyncBusinessEntity(true, true);
				_businessEntity = (BusinessEntityEntity)relatedEntity;
				this.PerformSetupSyncRelatedEntity( _businessEntity, new PropertyChangedEventHandler( OnBusinessEntityPropertyChanged ), "BusinessEntity", AdventureWorks.Dal.Adapter.v41.RelationClasses.StaticBusinessEntityAddressRelations.BusinessEntityEntityUsingBusinessEntityIdStatic, true, new string[] {  } );
			}
		}
开发者ID:ck-lee,项目名称:RawDataAccessBencher,代码行数:11,代码来源:BusinessEntityAddressEntity.cs


示例11: SetRelatedEntity

 /// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
 {
     switch(fieldName)
     {
         case "Customer":
             SetupSyncCustomer(relatedEntity);
             break;
         case "CustomerDemographic":
             SetupSyncCustomerDemographic(relatedEntity);
             break;
         default:
             break;
     }
 }
开发者ID:jhoekstrapiramidenl,项目名称:LLBLGenPro_SS_Api_Razor_Templates,代码行数:17,代码来源:CustomerCustomerDemoEntity.cs


示例12: SetupSyncAddressType

		/// <summary> setups the sync logic for member _addressType</summary>
		/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
		private void SetupSyncAddressType(IEntityCore relatedEntity)
		{
			if(_addressType!=relatedEntity)
			{
				DesetupSyncAddressType(true, true);
				_addressType = (AddressTypeEntity)relatedEntity;
				this.PerformSetupSyncRelatedEntity( _addressType, new PropertyChangedEventHandler( OnAddressTypePropertyChanged ), "AddressType", AdventureWorks.Dal.Adapter.v41.RelationClasses.StaticBusinessEntityAddressRelations.AddressTypeEntityUsingAddressTypeIdStatic, true, new string[] {  } );
			}
		}
开发者ID:ck-lee,项目名称:RawDataAccessBencher,代码行数:11,代码来源:BusinessEntityAddressEntity.cs


示例13: UnsetRelatedEntity

		/// <summary> Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() </summary>
		/// <param name="relatedEntity">Instance to unset as the related entity of type entityType</param>
		/// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
		/// <param name="signalRelatedEntityManyToOne">if set to true it will notify the manytoone side, if applicable.</param>
		protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne)
		{
			switch(fieldName)
			{
				case "Address":
					DesetupSyncAddress(false, true);
					break;
				case "AddressType":
					DesetupSyncAddressType(false, true);
					break;
				case "BusinessEntity":
					DesetupSyncBusinessEntity(false, true);
					break;
				default:
					break;
			}
		}
开发者ID:ck-lee,项目名称:RawDataAccessBencher,代码行数:21,代码来源:BusinessEntityAddressEntity.cs


示例14: SetRelatedEntity

		/// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
		/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
		/// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
		protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
		{
			switch(fieldName)
			{
				case "Address":
					SetupSyncAddress(relatedEntity);
					break;
				case "AddressType":
					SetupSyncAddressType(relatedEntity);
					break;
				case "BusinessEntity":
					SetupSyncBusinessEntity(relatedEntity);
					break;
				default:
					break;
			}
		}
开发者ID:ck-lee,项目名称:RawDataAccessBencher,代码行数:20,代码来源:BusinessEntityAddressEntity.cs


示例15: SetupSyncArtwork

 /// <summary> setups the sync logic for member _artwork</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncArtwork(IEntityCore relatedEntity)
 {
     if(_artwork!=relatedEntity)
     {
         DesetupSyncArtwork(true, true);
         _artwork = (ArtworkEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _artwork, new PropertyChangedEventHandler( OnArtworkPropertyChanged ), "Artwork", TVJunkie.DatabaseAccessLayer.RelationClasses.StaticArtworkToRoleRelations.ArtworkEntityUsingArtworkIdStatic, true, new string[] {  } );
     }
 }
开发者ID:MichelZ,项目名称:TVJunkie,代码行数:11,代码来源:ArtworkToRoleEntity.cs


示例16: SetupSyncCustomerDemographic

 /// <summary> setups the sync logic for member _customerDemographic</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncCustomerDemographic(IEntityCore relatedEntity)
 {
     if(_customerDemographic!=relatedEntity)
     {
         DesetupSyncCustomerDemographic(true, true);
         _customerDemographic = (CustomerDemographicEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _customerDemographic, new PropertyChangedEventHandler( OnCustomerDemographicPropertyChanged ), "CustomerDemographic", Northwind.Data.RelationClasses.StaticCustomerCustomerDemoRelations.CustomerDemographicEntityUsingCustomerTypeIdStatic, true, new string[] {  } );
     }
 }
开发者ID:jhoekstrapiramidenl,项目名称:LLBLGenPro_SS_Api_Razor_Templates,代码行数:11,代码来源:CustomerCustomerDemoEntity.cs


示例17: SetupSyncRole

 /// <summary> setups the sync logic for member _role</summary>
 /// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
 private void SetupSyncRole(IEntityCore relatedEntity)
 {
     if(_role!=relatedEntity)
     {
         DesetupSyncRole(true, true);
         _role = (RoleEntity)relatedEntity;
         this.PerformSetupSyncRelatedEntity( _role, new PropertyChangedEventHandler( OnRolePropertyChanged ), "Role", TVJunkie.DatabaseAccessLayer.RelationClasses.StaticArtworkToRoleRelations.RoleEntityUsingRoleIdStatic, true, new string[] {  } );
     }
 }
开发者ID:MichelZ,项目名称:TVJunkie,代码行数:11,代码来源:ArtworkToRoleEntity.cs


示例18: SetRelatedEntityProperty

		/// <summary> Sets the related entity property to the entity specified. If the property is a collection, it will add the entity specified to that collection.</summary>
		/// <param name="propertyName">Name of the property.</param>
		/// <param name="entity">Entity to set as an related entity</param>
		/// <remarks>Used by prefetch path logic.</remarks>
		protected override void SetRelatedEntityProperty(string propertyName, IEntityCore entity)
		{
			switch(propertyName)
			{
				case "SalesPerson":
					this.SalesPerson = (SalesPersonEntity)entity;
					break;
				default:
					this.OnSetRelatedEntityProperty(propertyName, entity);
					break;
			}
		}
开发者ID:tdhung80,项目名称:RawDataAccessBencher,代码行数:16,代码来源:SalesPersonQuotaHistoryEntity.cs


示例19: UnsetRelatedEntity

 /// <summary> Unsets the internal parameter related to the fieldname passed to the instance relatedEntity. Reverses the actions taken by SetRelatedEntity() </summary>
 /// <param name="relatedEntity">Instance to unset as the related entity of type entityType</param>
 /// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
 /// <param name="signalRelatedEntityManyToOne">if set to true it will notify the manytoone side, if applicable.</param>
 protected override void UnsetRelatedEntity(IEntityCore relatedEntity, string fieldName, bool signalRelatedEntityManyToOne)
 {
     switch(fieldName)
     {
         case "AspnetUser":
             DesetupSyncAspnetUser(false, true);
             break;
         case "SnFriendListMembers":
             this.PerformRelatedEntityRemoval(this.SnFriendListMembers, relatedEntity, signalRelatedEntityManyToOne);
             break;
         default:
             break;
     }
 }
开发者ID:MonoSoftware,项目名称:MonoX-Data-Access-Layer,代码行数:18,代码来源:SnFriendListEntity.cs


示例20: SetRelatedEntity

		/// <summary> Sets the internal parameter related to the fieldname passed to the instance relatedEntity. </summary>
		/// <param name="relatedEntity">Instance to set as the related entity of type entityType</param>
		/// <param name="fieldName">Name of field mapped onto the relation which resolves in the instance relatedEntity</param>
		protected override void SetRelatedEntity(IEntityCore relatedEntity, string fieldName)
		{
			switch(fieldName)
			{
				case "SalesPerson":
					SetupSyncSalesPerson(relatedEntity);
					break;
				default:
					break;
			}
		}
开发者ID:tdhung80,项目名称:RawDataAccessBencher,代码行数:14,代码来源:SalesPersonQuotaHistoryEntity.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ISimulationService类代码示例发布时间:2022-05-26
下一篇:
C# Entity类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap