예제 #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;
 }
예제 #2
0
 public ParentChildNode(RowInfo childRow)
 {
     this.ChildRow = childRow;
 }
예제 #3
0
 public ParentChildNode[] GetParents(RowInfo child)
 {
     return this.updateNodes.Where(u => u.ChildRow == child).ToArray();
 }
예제 #4
0
 private static string GetKey(RowInfo rowInfo)
 {
     return string.Format("{0}:{1}", rowInfo.dbSetInfo.dbSetName, rowInfo.clientKey);
 }
예제 #5
0
 public ParentChildNode[] GetChildren(RowInfo parent)
 {
     return this.updateNodes.Where(u => u.ParentRow == parent).ToArray();
 }