예제 #1
0
 /// <summary>
 /// Конструктор
 /// </summary>
 public Essence()
 {
     // ReSharper disable DoNotCallOverridableMethodsInConstructor
     DateInfo = new DateInfo();
     UpdateInfo = new UpdateInfo();
     Values = new List<EssenceAttributeValue>();
     // ReSharper restore DoNotCallOverridableMethodsInConstructor
 }
        //public virtual string AttributesInfo
        //{
        //    get
        //    {
        //        return Attributes==null ? "" : Attributes.Aggregate("", (s, value) => s + string.Format((string) "{0}; ", (object) value.Attribute.AttributeName));
        //    }
        //}

        //public virtual string AllowReferencesInfo
        //{
        //    get
        //    {
        //        return AllowReferences == null ? "" : AllowReferences.Aggregate("", (s, value) => s + string.Format("{0}; ", value.ReferenceTypeName));
        //    }
        //}

        public EssenceType()
        {
            // ReSharper disable DoNotCallOverridableMethodsInConstructor
            Attributes = new List<EssenceTypeAttribute>();
            AllowReferences = new List<ReferenceTypeWithDirection>();
            UpdateInfo = new UpdateInfo {UpdatedDate = DateTime.Now};
            // ReSharper restore DoNotCallOverridableMethodsInConstructor
        }
예제 #3
0
 public EssenceTypeAttribute()
 {
     UpdateInfo = new UpdateInfo();
 }
 public EssenceTypeAttribute()
 {
     UpdateInfo = new UpdateInfo();
 }