Esempio n. 1
0
        /// <summary>
        /// Create a new FAQContent object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="languageId">Initial value of the LanguageId property.</param>
        public static FAQContent CreateFAQContent(global::System.Guid id, global::System.String languageId)
        {
            FAQContent fAQContent = new FAQContent();

            fAQContent.Id         = id;
            fAQContent.LanguageId = languageId;
            return(fAQContent);
        }
Esempio n. 2
0
        public FAQContent Content(string culture)
        {
            var content = this.FAQContents.FirstOrDefault(x => x.LanguageId.Equals(culture));

            if (content != null)
            {
                return(content);
            }

            content = new FAQContent
            {
                Id       = this.Id,
                Answer   = this.Answer,
                Question = this.Question,
            };
            return(content);
        }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the FAQContents EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFAQContents(FAQContent fAQContent)
 {
     base.AddObject("FAQContents", fAQContent);
 }