随笔分类 - 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...
阅读全文
摘要:关键对象AttributeMappingSource [TestMethod] public void TestMethod1() { AttributeMappingSource source = new AttributeMappingSource(); for (int i = 0; i < 10000; i++) { //AttributeMappingSource source = new AttributeMappingSource();--》去...
阅读全文
摘要: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...
阅读全文
摘要:http://social.msdn.microsoft.com/Forums/en-US/linqtosql/thread/4482b083-72bd-4415-82be-8cccbd9eabba [代码] 应用 [代码]var bbb = con...
阅读全文
摘要: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 ...
阅读全文
摘要:IEnumerable deios = from sdrfb in this.SDRFBS join nodeid in nodeids on sdrfb.DFID equals nodeid j...
阅读全文
浙公网安备 33010602011771号