Exemplo n.º 1
0
 public EntityProjection(Guid identity, Guid metadataDefinitionGroupIdentity, string name, TrackingBase tracking)
 {
     Identity = identity;
     MetadataDefinitionGroupIdentity = metadataDefinitionGroupIdentity;
     Name     = name;
     Tracking = tracking;
 }
 public ReLabelMetadataDefinitionGroupCommand(Guid identity, MetadataDefinitionGroupName name, MetadataDefinitionGroupDescription description, TrackingBase tracking)
 {
     _tracking   = tracking;
     Identity    = identity;
     Name        = name;
     Description = description;
 }
Exemplo n.º 3
0
 public CreateMetadataDefinitionGroupCommand(Guid identity, string name, string description, MetadataBag bag, TrackingBase tracking)
 {
     Identity    = identity;
     Name        = name;
     Description = description;
     Tracking    = tracking;
     Bag         = bag;
 }
Exemplo n.º 4
0
 public static Func <TrackingBase> SetDeleted(TrackingBase tb)
 {
     return(() =>
     {
         tb.IsDeleted = true;
         return tb;
     });
 }
Exemplo n.º 5
0
 public MetadataDefinitionProjection(Guid identity, string name, string description, string datatype, string regex, TrackingBase tracking)
 {
     Identity    = identity;
     Name        = name;
     Description = description;
     DataType    = datatype;
     Regex       = regex;
     Tracking    = tracking;
 }
Exemplo n.º 6
0
        private void SetUpdated()
        {
            if (Tracking == null)
            {
                Tracking = new TrackingBase();
            }

            Tracking.LastModifiedUtcDate = DateTime.UtcNow;
        }
Exemplo n.º 7
0
 protected EntityValueProjection()
 {
     Identity = Guid.NewGuid();
     Tracking = new TrackingBase();
 }
Exemplo n.º 8
0
 public CreateMetadataDefinitionGroupCommand(Guid identity, string name, string description, TrackingBase tracking)
     : this(identity, name, description, new MetadataBag(), tracking)
 {
 }
Exemplo n.º 9
0
 public MetadataDefinitionGroupBagProjection()
 {
     Identity = Guid.NewGuid();
     Tracking = new TrackingBase();
 }
Exemplo n.º 10
0
 private static Expression <Func <TrackingBase, Func <TrackingBase> > > SetTracking(TrackingBase trk)
 {
     return((x) => SetDeleted(trk));
 }