internal static RelationCollection GetRelationsForField(string fieldName) { RelationCollection toReturn = new RelationCollection(); switch(fieldName) { case "AspnetRole": toReturn.Add(Relations.AspnetRolesEntityUsingRoleId); break; case "BlogPost": toReturn.Add(Relations.BlogPostEntityUsingBlogPostId); break; default: break; } return toReturn; }