Пример #1
0
        public virtual ModelDifferenceObject InitializeMembers(string name, string applicationTitle, string uniqueName)
        {
            PersistentApplication = new QueryPersistentApplication(Session).Find(uniqueName) ??
                                    new PersistentApplication(Session)
            {
                Name = applicationTitle, UniqueName = uniqueName
            };
            DateCreated = DateTime.Now;
            Name        = name;
            var aspectObject = new AspectObject(Session)
            {
                Name = CaptionHelper.DefaultLanguage
            };

            AspectObjects.Add(aspectObject);
            return(this);
        }
Пример #2
0
 public string GetAspectName(AspectObject aspectObject) {
     return aspectObject.Name == CaptionHelper.DefaultLanguage ? "" : aspectObject.Name;
 }
Пример #3
0
 public virtual ModelDifferenceObject InitializeMembers(string name, string applicationTitle, string uniqueName) {
     PersistentApplication = new QueryPersistentApplication(Session).Find(uniqueName) ??
                             new PersistentApplication(Session) { Name = applicationTitle, UniqueName = uniqueName };
     DateCreated = DateTime.Now;
     Name = name;
     var aspectObject = new AspectObject(Session) { Name = CaptionHelper.DefaultLanguage };
     AspectObjects.Add(aspectObject);
     return this;
 }
Пример #4
0
 public string GetAspectName(AspectObject aspectObject)
 {
     return(aspectObject.Name == CaptionHelper.DefaultLanguage ? "" : aspectObject.Name);
 }