Exemplo n.º 1
0
 public String SsdlAssociationSet(ForeignKeyConstraint dbco)
 {
     return String.Format("{0}", dbco.Name);
 }
Exemplo n.º 2
0
 public String CsdlAssociation(ForeignKeyConstraint dbco)
 {
     return String.Format("{0}", CsdlAssociationSet(dbco));
 }
Exemplo n.º 3
0
 public String SsdlAssociationRef(ForeignKeyConstraint dbco)
 {
     return String.Format("{0}.{1}", SsdlNs(), SsdlAssociationSet(dbco));
 }
Exemplo n.º 4
0
 public static ForeignKeyConstraint CreateForeignKeyConstraint(string id, string name, bool isDeferrable, bool isInitiallyDeferred, string updateRule, string deleteRule)
 {
     ForeignKeyConstraint foreignKeyConstraint = new ForeignKeyConstraint();
     foreignKeyConstraint.Id = id;
     foreignKeyConstraint.Name = name;
     foreignKeyConstraint.IsDeferrable = isDeferrable;
     foreignKeyConstraint.IsInitiallyDeferred = isInitiallyDeferred;
     foreignKeyConstraint.UpdateRule = updateRule;
     foreignKeyConstraint.DeleteRule = deleteRule;
     return foreignKeyConstraint;
 }