Dapper Extensions Change Schema

Dapper Extensions Change Schema

You can use the AutoClassMapper to assign a new schema to your model. An overview on this is on the extensions site. You will basically need to create an AutoClassMapper per model with a different schema. The best place to declare it is alongside your model itself like:

public class MyModel
{
public Guid Id { get; set; }
} public class MyModelMapper : AutoClassMapper<MyModel>
{
public MyModelMapper() : base()
{
Schema("YourNewSchema");
}
}

  

上一篇:linux系统下使用xampp 丢失mysql root密码【xampp的初始密码为空】


下一篇:jquery常用指令