I'm trying to create new application using BLToolkit but i can't compile the code, i get this error:
The type or namespace name 'DbManager' could not be found (are you missing a using directive or an assembly reference?
This class is described here
I included this References:
- BLToolkit.4
- BLToolkit.SL.4
But i don't see it, what is wrong?
Person GetPerson(int personId)
{
using (DbManager db = new DbManager())
{
return db
.SetCommand(@"
SELECT
p.PersonId,
p.FirstName,
p.LastName,
p.MiddleName,
p.Gender
FROM Person p
WHERE p.PersonId = @PersonId",
db.Parameter("@PersonId", personId))
.ExecuteObject<Person>();
}
}
the same problem is with version 3