Beispiel #1
0
 partial void DeleteTbLegalUrl_Cfg(TbLegalUrl_Cfg instance);
Beispiel #2
0
 partial void InsertTbLegalUrl_Cfg(TbLegalUrl_Cfg instance);
Beispiel #3
0
 partial void UpdateTbLegalUrl_Cfg(TbLegalUrl_Cfg instance);
Beispiel #4
0
        private static bool TbLegalInsert(string GuoBie, string Des, string Url)
        {
            DataClasses1DataContext db = new DataClasses1DataContext();
            TbLegalUrl_Cfg tb = new TbLegalUrl_Cfg();
            tb.CO = GuoBie;
            tb.Des = Des;
            tb.LegUrl = Url;

            try
            {
                db.TbLegalUrl_Cfg.InsertOnSubmit(tb);
                db.SubmitChanges();
            }
            catch (Exception ex)
            {
                return false;
            }
            return true;
        }