摘要:
用JSON或者XML等,不存在此问题,或者说相对容易解决此问题。 以下是指特定用Soap来进行序列化和反序列化中碰到的。 在一个程序集中: class Program{ static void Main(string[] args) { //Serialize(); A a = new A(); string re = Tool.Serial... 阅读全文
摘要:
关于Microsoft.CSharp.RuntimeBinder.RuntimeBinderException的异常一般来自于两种,第一种:Predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is not defined or import... 阅读全文
摘要:
以下代码会出问题: public static T Protect(Func func, UserLevel pageRole) where T : ActionResult, new(){ try { return func(); } catch (Exception err) { if (typeof(T) is JsonResult... 阅读全文
摘要:
一:标识域(Identity Field) 标识域(Identity Field)可以理解为主键。使用领域模型和行数据入口的时候,就要使用标识域,因为这两个对象代表的是唯一存在的那个数据记录。事务脚本、表模块、表数据入口等就不需要这个映射。 public abstract class DomainObj{ public string Id {get; set;} public string ... 阅读全文