随笔分类 -  LINQ

摘要:public partial class Employee { partial void OnCreated() { this._ExTable = new EntitySet<ExTable>(null, null); } private EntitySet<ExTable> _ExTable; [Association(Storage = "_ExTable", ThisKey = "EmployeeId", OtherKey = "EmployeeId")] publi... 阅读全文
posted @ 2013-05-30 17:18 I'm CY 阅读(349) 评论(0) 推荐(0)
摘要:关键对象AttributeMappingSource [TestMethod] public void TestMethod1() { AttributeMappingSource source = new AttributeMappingSource(); for (int i = 0; i < 10000; i++) { //AttributeMappingSource source = new AttributeMappingSource();--》去... 阅读全文
posted @ 2012-05-16 15:43 I'm CY 阅读(252) 评论(0) 推荐(0)
摘要:public void One() { var db = new DataContext("connString"); var emp = db.GetTable<HR_Employee>().First(); HR_VoucherDetail detail = new HR_VoucherDetail(); detail.HR_Employee = emp; Assert.AreEq... 阅读全文
posted @ 2010-07-30 12:30 I'm CY 阅读(243) 评论(0) 推荐(0)
摘要:http://social.msdn.microsoft.com/Forums/en-US/linqtosql/thread/4482b083-72bd-4415-82be-8cccbd9eabba          [代码]  应用 [代码]var bbb = con... 阅读全文
posted @ 2009-06-09 13:37 I'm CY 阅读(577) 评论(0) 推荐(0)
摘要:1 private void simpleButton1_Click(object sender, EventArgs e) 2 { 3 List list = new List(); 4 int[] ary = new int[] { 1,1,1,1,2,2,2,3,3,3,4,4,4}; 5 6 ... 阅读全文
posted @ 2008-03-27 15:45 I'm CY 阅读(431) 评论(0) 推荐(0)
摘要:IEnumerable deios = from sdrfb in this.SDRFBS join nodeid in nodeids on sdrfb.DFID equals nodeid j... 阅读全文
posted @ 2007-10-22 16:31 I'm CY 阅读(1677) 评论(0) 推荐(0)