Example #1
0
 public static MethodInfo GetCRUDMethodInfo(DbSetInfo dbInfo, RowInfo rowInfo)
 {
     MethodInfo methInfo = null;
     switch (rowInfo.changeType)
     {
         case ChangeType.Added:
             methInfo = dbInfo.getOperationMethodInfo(OperationNames.CREATE);
             break;
         case ChangeType.Deleted:
             methInfo = dbInfo.getOperationMethodInfo(OperationNames.DELETE);
             break;
         case ChangeType.Updated:
             methInfo = dbInfo.getOperationMethodInfo(OperationNames.UPDATE);
             break;
         default:
             throw new DomainServiceException(string.Format(ErrorStrings.ERR_REC_CHANGETYPE_INVALID, dbInfo.EntityType.Name, rowInfo.changeType));
     }
     return methInfo;
 }
Example #2
0
 public ParentChildNode(RowInfo childRow)
 {
     this.ChildRow = childRow;
 }
Example #3
0
 public ParentChildNode[] GetParents(RowInfo child)
 {
     return this.updateNodes.Where(u => u.ChildRow == child).ToArray();
 }
Example #4
0
 private static string GetKey(RowInfo rowInfo)
 {
     return string.Format("{0}:{1}", rowInfo.dbSetInfo.dbSetName, rowInfo.clientKey);
 }
Example #5
0
 public ParentChildNode[] GetChildren(RowInfo parent)
 {
     return this.updateNodes.Where(u => u.ParentRow == parent).ToArray();
 }