Beispiel #1
0
 public FeedAsset(
     Type feedType,
     EntityTypeAsset entityType,
     ExternalSystemAsset sourceSystem,
     IEnumerable <FeedAttribute> attributes)
 {
     this.FeedType     = feedType;
     this.EntityType   = entityType;
     this.SourceSystem = sourceSystem;
     this.Attributes   = attributes;
 }
Beispiel #2
0
 private void SetEntityTypeSharedSourceSystemIdentifiers(
     IDeploymentContext context, EntityTypeAsset entityType)
 {
     foreach (IEnumerable <ExternalSystemAsset> sourceSystems
              in entityType.SharedIdentifierSourceSystems)
     {
         context.SharedSourceSystemIdentifiers(
             entityType.Id,
             sourceSystems.Select(ss => ss.Id).ToArray());
     }
 }
Beispiel #3
0
 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);
     }
 }