c# - DapperExtensions produces "Invalid object name" on insert operation -
c# - DapperExtensions produces "Invalid object name" on insert operation -
i'm next simple insert operation illustration @ https://github.com/tmsmith/dapper-extensions#simple-insert-operation
public class org { public int id { get; set; } public string name { get; set; } } sqlconnection conn = new sqlconnection("..."); conn.open(); org org = new org() { name = "just testing" }; int id = conn.insert(org); conn.close();
this gives me system.data.sqlclient.sqlexception: invalid object name 'org'.
what doing wrong here? table exists , generated ef code first standard dbcontext
subclass containing public dbset<org> orgs { get; set; }
c# sql-server entity-framework dapper dapper-extensions
Comments
Post a Comment