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