I am using Dapper.SimpleCrud. Does anyone know how to set the schema name for a table? I have looked through the documentation but I have not found anything relating to setting or changing the schema name.
public class doc_info
{
public int doc_info_id { get; set; }
public int app_info_id { get; set; }
public string doc_name { get; set; }
public string file_loc { get; set; }
public string doc_type { get; set; }
public string doc_scope { get; set; }
public int doc_order { get; set; }
}
This was old request raised here on GitHub:
The feature was included as stated here on GitHub:
Class
TableAttributehave a propertySchema:You should set this
TableAttribute.Schemaproperty while decorating Entity/POCO withTableattribute. Decorate your Entity/POCO class with[Table("YourTableName", Schema = "YourSchema")].