Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一次修改表名会报NullException #134

Open
MuXueMaster opened this issue Mar 28, 2020 · 1 comment
Open

第一次修改表名会报NullException #134

MuXueMaster opened this issue Mar 28, 2020 · 1 comment

Comments

@MuXueMaster
Copy link

MuXueMaster commented Mar 28, 2020

第一次修改表名,就会报异常,第2次以后就不会报异常了,是哪里少写东西了?
代码如下:
`
public HomeController(IUnitOfWork unitOfWork, ILogger logger)
{
_logger = logger;
_unitOfWork = unitOfWork;

        var blogRepo = _unitOfWork.GetRepository<Blog>();
        var ym = DateTime.Now.ToString("yyyyMM");

        blogRepo.ChangeTable($"blogs{ym}");

}
`

@GitHubForCJJ
Copy link

我也遇到了同样的问题,看了评论发现你也遇到了,请问找到问题的解决方法了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants