예제 #1
0
 public String SsdlAssociationSet(ForeignKeyConstraint dbco)
 {
     return String.Format("{0}", dbco.Name);
 }
예제 #2
0
 public String CsdlAssociation(ForeignKeyConstraint dbco)
 {
     return String.Format("{0}", CsdlAssociationSet(dbco));
 }
예제 #3
0
 public String SsdlAssociationRef(ForeignKeyConstraint dbco)
 {
     return String.Format("{0}.{1}", SsdlNs(), SsdlAssociationSet(dbco));
 }
예제 #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;
 }