Ejemplo n.º 1
0
        public EntityRelationship AddEntityRelationship(ClassType first, ClassType second)
        {
            var dependency = new EntityRelationship(first, second);

            AddEntityRelationship(dependency);
            return(dependency);
        }
Ejemplo n.º 2
0
        public EntityRelationship Clone(ClassType first, ClassType second)
        {
            EntityRelationship dependency = new EntityRelationship(first, second);

            dependency.CopyFrom(this);
            return(dependency);
        }
Ejemplo n.º 3
0
 public bool InsertEntityRelationship(EntityRelationship dependency)
 {
     if (dependency != null && !_relationships.Contains(dependency) &&
         _entities.Contains(dependency.First) && _entities.Contains(dependency.Second))
     {
         AddEntityRelationship(dependency);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 4
0
 protected virtual void AddEntityRelationship(EntityRelationship dependency)
 {
     AddRelationship(dependency);
 }