I\'m trying to figure out the correct way to atomically increment a counter in one table and use that incremented value as an pseudo display-only ID for a record in another.
db.Update<Luna.Record.TB_ITEM>().Set( x => x.ITEM_DURABILITY == Convert.ToInt32(quantity)) .Where(x => x.ITEM_POSITION == Convert.ToInt32(position))
I\'m getting a开发者_如何学Pythonn error while trying to load an record through the constructor.
I\'ve been trying to use SubSonic 3.0\'s test repository support for unit testing but encountered a few issues, so I thought I document them, and the fixes I\'ve come up with:
I\'m using SubSonic 3 (ActiveRecord mode) to generate the code for my DAL. It uses T4 templates (.tt) files that as soon as you save, generate the code for you.
I\'ve run into a problem when using SubSonic 3(.0.0.3) ActiveRec开发者_开发百科ord with MySQL.
I am not running Mike\'s latest code because it does not build and he didn\'t update the templates to generate code for the new Load with columns he added.So I am one revision back in the source.
I have a stored proc: CREATE PROCEDURE MyProc ( @P1 uniqueidentifier, @P2 int = NULL output, @P3 int = NULL output )
I have some old code that was using 开发者_运维百科Subsonic 1.x and want to migrate to 3. Some of my old methods used to return a Dataset using the old Subsonic Query object and then just calling Exec
I am using Subsonic 2.1 and I need to doan innerjoin and use a where expression and I keep getting the error: