The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Preventing duplicate key

Last post 06-28-2007, 3:04 PM by Scott.Schecter. 1 replies.
Sort Posts: Previous Next
  •  06-28-2007, 2:45 PM 3443

    Preventing duplicate key

    Working with the Infragistics grid and ES I can attempt to add a duplicate primary key and generate a database error. The grid itself might prevent this by design when bound to a keyed datatable, not sure, have not tried that yet.

    WIth ES, what is the most efficient way to check the current collection does not contain the primary key combination that is about to be added?

  •  06-28-2007, 3:04 PM 3444 in reply to 3443

    Re: Preventing duplicate key

    myCollection.FindByPrimaryKey()
    Regards,

    Scott Schecter
    EntitySpaces | My Site
View as RSS news feed in XML