public void InsertNews(News news) { using (ConfigurationDataContext context = new ConfigurationDataContext(Utility.GetConnectionString(configurationDataContext))) { news.CreateDate = DateTime.Now; context.AddToNews(news); context.SaveChanges(); } }