Skip to content

Instantly share code, notes, and snippets.

@mdissel
Created April 12, 2017 20:51
Show Gist options
  • Save mdissel/6bc5fa7204194281c390c0a53a2b2673 to your computer and use it in GitHub Desktop.
Save mdissel/6bc5fa7204194281c390c0a53a2b2673 to your computer and use it in GitHub Desktop.
public class UserAuth{
...
public long UserID {get;set;}
}
User user = new User();
user.UserID = 100;
session.Store(user);
session.SaveChanges();
// json in data column with camelCase is {userID:100}
session.Query<User>().Where(x => UserID = 100);
// sql query = (d.data ->> 'UserID' = :arg1)
// no results, because json document contains { userID:100} and not { UserID: 100}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment