Alexander Selishchev
Alexander Selishchev
`@model` is controlled by RazorEngineCore itself so you dont need to use this directive and need to remove it from your template. `@using` is supported too. Most likely you will...
To keep intellisense suggestions use `@Inherits` instead of `@model` https://github.com/adoconnection/RazorEngineCore/wiki/Switch-from-RazorEngine-cshtml-templates#template
@sergeyt wont it be hidden surprice, if someone will put `@model TypeA` directive and then figure out it was ignored and replaced by RazorEngineCode?
@garryxiao sure, the only thing is I would like it to be done using Razor tools, sinse razor somehow parse them there should be a way to get usings collection....
@304NotModified wiki is open now :)
> It seems like maybe this wrapper is only required when the model is an anonymous type, based on here: > So in my case I can probably just remove...
Its because of ```new``` keywork I used: https://github.com/adoconnection/RazorEngineCore/blob/master/RazorEngineCore/RazorEngineTemplateBaseT.cs Thats design issue, I need to think a little.
as a quick solution I would simplify cache dictionary: ``` private static ConcurrentDictionary TemplateCache = new ConcurrentDictionary(); ``` ``` public static string Render(string template, TModel model, Assembly[] referencedAssemblies = null)...
Cool, however this breaking change for ```new``` keywork is confusing. I would prefer something like this, with ```override``` keyword ```cs public abstract class RazorEngineTemplateBase : RazorEngineTemplateBase { public override T...
good news anyway :)