The EntitySpaces Community

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

Is it possible to have a dynamic where clause when using DynamicSQL?

Last post 06-06-2007, 10:18 AM by Mike.Griffin. 1 replies.
Sort Posts: Previous Next
  •  06-06-2007, 8:45 AM 3068

    Is it possible to have a dynamic where clause when using DynamicSQL?

    Currently we have been using RowVersion in our tables for concurrency with stored procedures. The problem that I'm trying to solve is that many users may be updating the same entity, but different parts. I tried using the DynamicSQL and it builds the SET statement for only changed data, but the where clause contains PK or PK & RowVersion. Is it possible to get the DynamicSQL to build PK & Changed Fields in the where component?

  •  06-06-2007, 10:18 AM 3070 in reply to 3068

    Re: Is it possible to have a dynamic where clause when using DynamicSQL?

    No, ES will not do that, you're wanting field level concurrency and we really don't support that. Do you really have so many concurrency hits that this is a problem? That would be somewhat unusual. However, ES doesn't build update statements like

    WHERE @PK=PK AND @LASTNAME = LASTNAME AND @FIRSTNAME=FIRSTNAME

    We will enter this into our tracking system however to be considered for a future release.

     


    EntitySpaces | Twitter | BLOG | Please honor our Software License
View as RSS news feed in XML