public void Insert(Person item) { IDbConnection _dataSource; AddPersonToDB addPersonToDB = new AddPersonToDB(_dataSource = new SQLiteConnection(SQLiteDataAccess.LoadConectionString())); addPersonToDB.Execute(item); }
public Person Find(Guid id) { IDbConnection _dataSource; GetPersonByIdQuery getPersonByIdQuery = new GetPersonByIdQuery(_dataSource = new SQLiteConnection(SQLiteDataAccess.LoadConectionString())); return(getPersonByIdQuery.Execute(id)); }