public FeedAsset( Type feedType, EntityTypeAsset entityType, ExternalSystemAsset sourceSystem, IEnumerable <FeedAttribute> attributes) { this.FeedType = feedType; this.EntityType = entityType; this.SourceSystem = sourceSystem; this.Attributes = attributes; }
private void SetEntityTypeSharedSourceSystemIdentifiers( IDeploymentContext context, EntityTypeAsset entityType) { foreach (IEnumerable <ExternalSystemAsset> sourceSystems in entityType.SharedIdentifierSourceSystems) { context.SharedSourceSystemIdentifiers( entityType.Id, sourceSystems.Select(ss => ss.Id).ToArray()); } }
private void SetEntityTypeParameters( IDeploymentContext context, EntityTypeAsset entityType) { if (entityType.Attribute.OrphanMappingBehavior != 0) { context.EntityTypeOrphanMappingBehavior( entityType.Id, entityType.Attribute.OrphanMappingBehavior); } if (entityType.Attribute.GarbageCollectionBehavior != 0) { context.EntityTypeGarbageCollectionBehavior( entityType.Id, entityType.Attribute.GarbageCollectionBehavior); } }