Skip to content

Commit 2db6085

Browse files
committed
remove RazorTemplateEngine by RazorLight !!!
1 parent 811aa48 commit 2db6085

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+76
-959
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Build:
181181
| Author | 作者 |
182182
| DataSource | 数据源 |
183183
| Language | 语言:CSharp/Java/.... |
184-
| TemplateEngine | 模板引擎:目前内置:Razor/OfficialRazor/Handlebars |
184+
| TemplateEngine | 模板引擎:目前内置:Razor/Handlebars |
185185
| Output | 输出 |
186186
| Build | 任务构建s |
187187

doc/SmartCode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DataSource:
77
DbProvider: SqlServer
88
ConnectionString: Data Source=.;Initial Catalog=SmartSqlStarterDB;Integrated Security=True
99
Language: CSharp
10-
TemplateEngine: OfficialRazor
10+
TemplateEngine: Razor
1111
Output:
1212
Type: File
1313
Path: 'E://SmartSql-Starter'

src/SmartCode.App/PluginManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public TPlugin Resolve<TPlugin>(string name = "") where TPlugin : IPlugin
4747
_logger.LogWarning(errMsg);
4848
}
4949
}
50-
_logger.LogDebug($"GetPlugin Name:{name},PluginType:{typeof(TPlugin).FullName}!");
50+
_logger.LogDebug($"GetPlugin Name:{name},PluginType:{typeof(TPlugin).FullName},ImplType:{plugin.GetType().FullName}!");
5151
return (TPlugin)plugin;
5252
}
5353

src/SmartCode.App/SmartCodeApp.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ private void RegisterPlugins()
6464
foreach (var plugin in SmartCodeOptions.Plugins)
6565
{
6666
var pluginType = Assembly.Load(plugin.AssemblyName).GetType(plugin.TypeName);
67+
if (pluginType == null)
68+
{
69+
throw new SmartCodeException($"Plugin.Type:{plugin.TypeName} can not find!");
70+
}
6771
var implType = Assembly.Load(plugin.ImplAssemblyName).GetType(plugin.ImplTypeName);
72+
if (implType == null)
73+
{
74+
throw new SmartCodeException($"Plugin.ImplType:{plugin.ImplTypeName} can not find!");
75+
}
6876
if (!pluginType.IsAssignableFrom(implType))
6977
{
7078
throw new SmartCodeException($"Plugin.ImplType:{implType.FullName} can not Impl Plugin.Type:{pluginType.FullName}!");

src/SmartCode.CLI/OfficialRazorTemplates/Copyright.cshtml

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/SmartCode.CLI/OfficialRazorTemplates/Entity.cshtml

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/SmartCode.CLI/OfficialRazorTemplates/Proj-Repository.cshtml

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/SmartCode.CLI/OfficialRazorTemplates/Proj.cshtml

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/SmartCode.CLI/OfficialRazorTemplates/Repository.cshtml

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/SmartCode.CLI/OfficialRazorTemplates/Sln.cshtml

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)