// Updates a row in the Projection table. Note that this call updates // all fields, in order to update only certain fields using OrmLite, // use an anonymous type like the below line, which would only // update the FirstName and LastName fields: // _dbConnection.Update(new { Points = 20, PassingTouchdowns = 2 }); public Projection UpdateProjection(Projection p) { _dbConnection.Update<Projection>(p); return p; }
// Inserts a new row into the Projection table public int AddProjection(Projection p) { return (int)_dbConnection.Insert<Projection>(p, selectIdentity: true); }