Beispiel #1
0
 public SourceReferences(
     SourceConstraint pkConstarint,
     SourceConstraint fkConstarint,
     SourceFieldDefinition pkField,
     SourceFieldDefinition fkField)
     : this(null, pkConstarint, fkConstarint, pkField, fkField)
 {
 }
Beispiel #2
0
 public SourceReferences(string action,
                         SourceConstraint pkConstarint,
                         SourceConstraint fkConstarint,
                         SourceFieldDefinition pkField,
                         SourceFieldDefinition fkField)
 {
     DeleteAction = action;
     PKConstraint = pkConstarint;
     FKConstraint = fkConstarint;
     PKField      = pkField;
     FKField      = fkField;
 }
Beispiel #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);
        }