New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exists Parameter support entity objects #442

merged 2 commits into from May 1, 2018


None yet
2 participants

maybgit commented Apr 4, 2018

//The primary key is not using the save method when the self identification column is added.

[PrimaryKey("IdCard", AutoIncrement = false)]
class Person
[Column] public string IdCard { get; set; }
[Column] public string Name { get; set; }

var model = new Person() { IdCard = "1234567890", Name = "mayb" };
var db = new Database();
if (db.Exists<Person>(model)) db.Update(model);
else db.Insert(model);

maybgit added some commits Apr 4, 2018

Merge pull request #1 from CollaboratingPlatypus/development
Add ability to set a default mapper in constr
Update Database.cs
Parameter support entity objects

@pleb pleb merged commit a6b0e9f into CollaboratingPlatypus:development May 1, 2018

1 check passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment