Avoiding Duplicates Entries RRS feed

  • Question

  • Hi all. I am using the HTML version.

    I am trying to validate if an entry has already been added to a table.

    I am using entity framework against SQL Azure.

    Its basically a clock in system where by one person is added each day and a time set against him/her.

    So I need to check against an ID and date range of today. If the items already exists in the table then stop and provide a warning.

     I assume it a check on the validate method.

     partial void ClockInStaffs_Validate(ClockInStaff entity, EntitySetValidationResultsBuilder results)

    Any pointers would help.

    Thanks in advance. Scott

    Wednesday, May 21, 2014 12:14 PM

All replies