Exemplo n.º 1
0
        public static int InsertNews(string title, string summary, string content, DateTime createdate, string createuser)
        {
            NEWSINFO ni = new NEWSINFO();
            ni.TITLE = title;
            ni.SUMMARY = summary;
            ni.NEWS_CONTENT = content;
            ni.CREATEDATE = createdate;
            ni.CREATEUSER = createuser;

            using (DataClasses1DataContext db = new DataClasses1DataContext())
            {
                db.Log = Console.Out;
                db.NEWSINFO.InsertOnSubmit(ni);
                db.SubmitChanges();
            }
            return ni.id;
        }
Exemplo n.º 2
0
 partial void DeleteNEWSINFO(NEWSINFO instance);
Exemplo n.º 3
0
 partial void UpdateNEWSINFO(NEWSINFO instance);
Exemplo n.º 4
0
 partial void InsertNEWSINFO(NEWSINFO instance);