Exemplo n.º 1
0
 public SourceReferences(
     SourceConstraint pkConstarint,
     SourceConstraint fkConstarint,
     SourceFieldDefinition pkField,
     SourceFieldDefinition fkField)
     : this(null, pkConstarint, fkConstarint, pkField, fkField)
 {
 }
Exemplo n.º 2
0
 public SourceReferences(string action,
                         SourceConstraint pkConstarint,
                         SourceConstraint fkConstarint,
                         SourceFieldDefinition pkField,
                         SourceFieldDefinition fkField)
 {
     DeleteAction = action;
     PKConstraint = pkConstarint;
     FKConstraint = fkConstarint;
     PKField      = pkField;
     FKField      = fkField;
 }
Exemplo n.º 3
0
        //public IEnumerable<SourceConstraint> GetConstraints(SourceFragmentDefinition sf)
        //{
        //    return sf.Constraints;
        //}

        public IEnumerable <SourceReferences> GetFKRelations(SourceConstraint fkConstraint)
        {
            return(from sr in _references
                   where sr.FKConstraint == fkConstraint
                   select sr);
        }