コード例 #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);
 }