MonoSoftware.MonoX.DAL.EntityClasses.NewsCategoryTemplateEntity.GetRelationsForField C# (CSharp) Méthode

GetRelationsForField() static private méthode

Gets the relation objects which represent the relation the fieldName specified is mapped on.
static private GetRelationsForField ( string fieldName ) : RelationCollection
fieldName string Name of the field mapped onto the relation of which the relation objects have to be obtained.
Résultat RelationCollection
        internal static RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();
            switch(fieldName)
            {
                case "NewsCategory":
                    toReturn.Add(Relations.NewsCategoryEntityUsingId);
                    break;
                default:
                    break;
            }
            return toReturn;
        }