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


C# IEntityCore类代码示例

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


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


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