Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public override bool CreateLiteralSql(ref Data.DataHolder holder)
- {
- //If there is no value, then we want to query against null.
- if (holder.NoValue)
- {
- holder.StringValue = "NULL";
- //returning false indicates that no quotes are required. We want NULL instead of 'NULL'
- return false;
- }
- else
- {
- //convert the int value into a string, since that is what we are storing it as in the db
- holder.StringValue = holder.Int32Value.ToString();
- // return true indicates that quotes are needed around the value
- return true;
- }
- }
Add Comment
Please, Sign In to add comment