Пример #1
0
        /// <summary>Gets the relation objects which represent the relation the fieldName specified is mapped on. </summary>
        /// <param name="fieldName">Name of the field mapped onto the relation of which the relation objects have to be obtained.</param>
        /// <returns>RelationCollection with relation object(s) which represent the relation the field is maped on</returns>
        internal static new RelationCollection GetRelationsForField(string fieldName)
        {
            RelationCollection toReturn = new RelationCollection();

            switch (fieldName)
            {
            default:
                toReturn = ActorEntity.GetRelationsForField(fieldName);
                break;
            }
            return(toReturn);
        }
Пример #2
0
 protected ActorIncidentEntity(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (SerializationHelper.Optimization != SerializationOptimization.Fast)
     {
         _actor = (ActorEntity)info.GetValue("_actor", typeof(ActorEntity));
         if (_actor != null)
         {
             _actor.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         _incident = (IncidentEntity)info.GetValue("_incident", typeof(IncidentEntity));
         if (_incident != null)
         {
             _incident.AfterSave += new EventHandler(OnEntityAfterSave);
         }
         this.FixupDeserialization(FieldInfoProviderSingleton.GetInstance());
     }
     // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor
     // __LLBLGENPRO_USER_CODE_REGION_END
 }