示例#1
0
        public void RegCleanObjects(object sender, DirtyObjsInfoEventArgs e)
        {
            var objs = e.DirtyObjs;

            foreach (var obj in objs)
            {
                if (!_dirtyObjects.ContainsKey(obj))
                {
                    var cloneObj = new EntityStruct(obj.Key, (EntityBase)obj.Value.Clone());
                    _dirtyObjects.Add(obj, cloneObj);
                }
            }
        }
示例#2
0
 public RemoveObjInfoEventArgs(EntityStruct obj)
 {
     RemovedObj = obj;
 }
示例#3
0
 public UpdateObjsInfoEventArgs(BinaryExpression exp, EntityStruct obj)
 {
     UpdateObjs.Add(exp, obj);
 }
示例#4
0
 public AddObjInfoEventArgs(EntityStruct obj)
 {
     InsertedObj = obj;
 }