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