diff --git a/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs b/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs index 882d96f99..eee674e80 100644 --- a/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs +++ b/SqlSugar/Abstract/DbFirstProvider/DbFirstProvider.cs @@ -124,6 +124,7 @@ namespace SqlSugar } public void CreateClassFile(string directoryPath, string nameSpace = "Models") { + Check.ArgumentNullException(directoryPath, "directoryPath can't null"); this.Namespace = nameSpace; var classStringList = ToClassStringList(nameSpace); if (classStringList.IsValuable())