示例#1
0
 public dtoTemplateTranslation(TemplateTranslation t)
 {
     if (t != null)
     {
         Id           = t.Id;
         Deleted      = t.Deleted;
         IdVersion    = t.Version.Id;
         IdLanguage   = t.IdLanguage;
         Translation  = t.Translation;
         LanguageCode = t.LanguageCode;
         LanguageName = t.LanguageName;
     }
 }
示例#2
0
        public virtual TemplateTranslation Copy(TemplateDefinitionVersion version, litePerson person, String ipAddress, String ipProxyAddress, String namePrefix = "")
        {
            TemplateTranslation t = new TemplateTranslation();

            t.CreateMetaInfo(person, ipAddress, ipProxyAddress);

            t.Version      = version;
            t.IdLanguage   = IdLanguage;
            t.LanguageCode = LanguageCode;
            t.Translation  = Translation.Copy();
            if (!String.IsNullOrEmpty(namePrefix))
            {
                t.Translation.Name = namePrefix + t.Translation.Name;
            }
            return(t);
        }