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); }
public string GetAspectName(AspectObject aspectObject) { return aspectObject.Name == CaptionHelper.DefaultLanguage ? "" : aspectObject.Name; }
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; }
public string GetAspectName(AspectObject aspectObject) { return(aspectObject.Name == CaptionHelper.DefaultLanguage ? "" : aspectObject.Name); }