• SPMetal 日志导出Caml语句


        protected void Page_Load(object sender, EventArgs e)
            {
                System.IO.TextWriter log;
                string path = @"c:\TestLinqSQL.txt";
                log = System.IO.File.AppendText(path);
                using (LinqDemoTestDataContext SDataContext = new LinqDemoTestDataContext("http://win"))
                {
                    SDataContext.Log = log;
                    var item = (from policy in SDataContext.Product
                                where policy.MyNumber == "HasModified"
                                select policy).Single();
                    if (item != null)
                    {
                        item.MyNumber = "1111111111";
                    }
                    SDataContext.SubmitChanges();
                    log.Close();
                };
            }

  • 相关阅读:
    数组指针和指针数组的区别
    C++虚函数
    C++容器
    红黑树
    COM RTS/CTS, DTR/DSR
    linux和windows多线程的异同
    socket
    C++vector使用
    select函数详解
    linux下头文件
  • 原文地址:https://www.cnblogs.com/TNSSTAR/p/3077029.html
Copyright © 2020-2023  润新知