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