03 2017 档案

摘要:为了正常序列化和反序列化,可以直接禁止建立代理类,尤其是当序列化和反序列化发生在不同AppDomain的情况下时反序列化必须失败。 否则就要通过ProxyDataContractResolver自己实现代理类的序列化,那就累了!!! 阅读全文
posted @ 2017-03-29 18:52 woolhoo 阅读(498) 评论(0) 推荐(0)
摘要:没有什么太好的方法,只能使用DbDataRecord或dynamic作为类型指定,返回类型操作不直观,但能用。 阅读全文
posted @ 2017-03-29 14:21 woolhoo 阅读(300) 评论(0) 推荐(0)
摘要:System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("NamespaceHint"); 阅读全文
posted @ 2017-03-28 17:18 woolhoo 阅读(130) 评论(0) 推荐(0)
摘要:1 var orders = from o in context.Orders 2 join a in context.Accounts on 3 // 使用匿名类型来构造一个复合的查询表达式 4 new { Id = o.AccountId, City = o.ShipCity, State = o.ShipState } 5 equals 6 new ... 阅读全文
posted @ 2017-03-24 19:09 woolhoo 阅读(466) 评论(0) 推荐(0)
摘要:1 ((IObjectContextAdapter)dbcontext).ObjectContext.CreateQuery<object>(esql, new ObjectParameter("name", value)) 阅读全文
posted @ 2017-03-24 18:49 woolhoo 阅读(723) 评论(0) 推荐(0)
摘要:linq: esql: 阅读全文
posted @ 2017-03-24 18:47 woolhoo 阅读(216) 评论(0) 推荐(0)