Guest User

Untitled

a guest
Nov 26th, 2018
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. acc = db.GetCollection<AccountModel>("accounts");
  2.  
  3. accs = db.getCollection("accounts", AccountModel.class);
  4.  
  5. public void InsertPlayer(String username){
  6.  
  7. Model_Account newAccount = new Model_Account();
  8. newAccount.Username = "username";
  9. newAccount.Password = "password";
  10. newAccount.Email = "email@hotmail.com";
  11.  
  12. accounts.insertOne(newAccount);
  13.  
  14. }
  15.  
  16. Caused by:org.bson.codecs.configuration.CodecConfigurationException: Can't find a codec for class AccountModel.
Add Comment
Please, Sign In to add comment