Created
April 12, 2017 20:51
-
-
Save mdissel/6bc5fa7204194281c390c0a53a2b2673 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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