public TemplatesModel(tbl_Templates template) { this.TemplateID = template.TemplateID; this.Name = template.T_Name; this.Footer = template.T_Footer ?? String.Empty; this.UseFooter = template.T_UseFooter; this.Header = template.T_Header ?? String.Empty; this.UseHeader = template.T_UseHeader; this.Live = template.T_Live; }
/// <summary> /// Create a new tbl_Templates object. /// </summary> /// <param name="templateID">Initial value of the TemplateID property.</param> /// <param name="t_UseHeader">Initial value of the T_UseHeader property.</param> /// <param name="t_UseFooter">Initial value of the T_UseFooter property.</param> /// <param name="t_Live">Initial value of the T_Live property.</param> public static tbl_Templates Createtbl_Templates(global::System.Int32 templateID, global::System.Boolean t_UseHeader, global::System.Boolean t_UseFooter, global::System.Boolean t_Live) { tbl_Templates tbl_Templates = new tbl_Templates(); tbl_Templates.TemplateID = templateID; tbl_Templates.T_UseHeader = t_UseHeader; tbl_Templates.T_UseFooter = t_UseFooter; tbl_Templates.T_Live = t_Live; return tbl_Templates; }
/// <summary> /// Deprecated Method for adding a new object to the tbl_Templates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTotbl_Templates(tbl_Templates tbl_Templates) { base.AddObject("tbl_Templates", tbl_Templates); }