private void Audit(GenericId model)
 {
     if (model.id == 0)
     {
         model.createdBy = currentUserId;
         model.createdOn = DateTime.Now;
     }
     model.changedBy = currentUserId;
     model.changedOn = DateTime.Now;
 }
Beispiel #2
0
 private void Audit(GenericId model)
 {
     if (model.id == Guid.Empty)
     {
         model.id        = Guid.NewGuid();
         model.createdBy = currentUserId;
         model.createdOn = DateTime.Now;
     }
     model.changedBy = currentUserId;
     model.changedOn = DateTime.Now;
 }
Beispiel #3
0
        public object Clone()
        {
            CompactClass compactClass = new CompactClass();

            compactClass.Name                 = Name != null ? (string)Name.Clone() : null;
            compactClass.ID                   = ID != null ? (string)ID.Clone() : null;
            compactClass.Assembly             = Assembly != null ? (string)Assembly.Clone() : null;
            compactClass.Type                 = Type != null ? (string)Type.Clone() : null;
            compactClass.IsGeneric            = IsGeneric;
            compactClass.GenericId            = GenericId != null ? (string)GenericId.Clone() : null;
            compactClass.NumberOfArgs         = NumberOfArgs != null ? (string)NumberOfArgs.Clone() : null;
            compactClass.GenericArgumentTypes = GenericArgumentTypes != null ? (GenericArgumentType[])GenericArgumentTypes.Clone() : null;
            compactClass.NonCompactFields     = NonCompactFields != null ? (Attrib[])NonCompactFields.Clone() : null;
            return(compactClass);
        }
Beispiel #4
0
 public void Visit(GenericId id)
 {
     throw new NotSupportedException("Objects other than appointments are not supported!");
 }
 public void Visit(GenericId id)
 {
     Ids.Add(id.Inner);
 }