Example #1
0
 public static String SenderEmailAddress(this ForumConfiguration conf)
 {
     return(conf.GetCustomPropertyString(ForumConfiguration.PropertyNames.SenderEmailAddress));
 }
Example #2
0
 public static Int32 TopicsPerPage(this ForumConfiguration conf)
 {
     return(conf.GetCustomPropertyInt32(ForumConfiguration.PropertyNames.TopicsPerPage));
 }
Example #3
0
 public static void SetTopicsPerPage(this ForumConfiguration conf, Int32 topicsPerPage)
 {
     conf.SetCustomProperty(ForumConfiguration.PropertyNames.TopicsPerPage, topicsPerPage);
 }
Example #4
0
 public static void SetPostsPerPage(this ForumConfiguration conf, Int32 postsPerPage)
 {
     conf.SetCustomProperty(ForumConfiguration.PropertyNames.PostsPerPage, postsPerPage);
 }
Example #5
0
 public static DateTime InstallationDate(this ForumConfiguration conf)
 {
     return(conf.GetCustomPropertyDateTime(ForumConfiguration.PropertyNames.InstallationDate));
 }
Example #6
0
 public static void SetTheme(this ForumConfiguration conf, String theme)
 {
     conf.SetCustomProperty(ForumConfiguration.PropertyNames.Theme, theme);
 }
Example #7
0
 public static String Theme(this ForumConfiguration conf)
 {
     return(conf.GetCustomPropertyString(ForumConfiguration.PropertyNames.Theme));
 }
Example #8
0
 public static String Version(this ForumConfiguration conf)
 {
     return(conf.GetCustomPropertyString(ForumConfiguration.PropertyNames.Version));
 }
		public ForumConfiguration Update(ForumConfiguration config) {
			// TODO: ???
			this.context.SaveChanges();
			return config;
		}
		public ForumConfiguration Create(ForumConfiguration config) {
			ForumConfiguration entity = this.set.Add(config);
			this.context.SaveChanges();
			return entity;
		}