internal static RelationCollection GetRelationsForField(string fieldName) { RelationCollection toReturn = new RelationCollection(); switch(fieldName) { case "AspnetUser": toReturn.Add(Relations.AspnetUsersEntityUsingUserId); break; case "Blog": toReturn.Add(Relations.BlogEntityUsingBlogId); break; default: break; } return toReturn; }