|
EF6 первое обращение порядка 3-х секунд
|
|||
---|---|---|---|
#18+
Использую Code First. EF 6.1.3 Как можно сократить время первого обращения к базе? Установил EF6 CodeFirst View Generation T4 Template for C# , но результата не увидел. Время первого обращения осталось около 3-х секунд. Я чего-то наверняка не сделал. Но чего - не понимаю. ... |
|||
:
Нравится:
Не нравится:
|
|||
20.04.2015, 15:23 |
|
EF6 первое обращение порядка 3-х секунд
|
|||
---|---|---|---|
#18+
Я добавил новый шаблон. Назвал его так-же, как мой context, т.е. DbContext.Views.tt . И запустил приложение. Ошибок нет и скорости тоже. В шаблоне есть метод LoadViews(). Он вызывается. Что еще нужно делать? ... |
|||
:
Нравится:
Не нравится:
|
|||
20.04.2015, 15:35 |
|
EF6 первое обращение порядка 3-х секунд
|
|||
---|---|---|---|
#18+
Когда проект билдится должны быть такие строки: ------ Build started: Project: T4MSBuild, Configuration: Debug x86 ------ Build started 4/10/2010 1:30:38 PM. ExecuteTransformations: Performing incremental T4 transformation Calculating whether transformed output is out of date... Transforming template Template.tt... Performing incremental T4 preprocessing Calculating whether preprocessed output is out of date... Preprocessing template PreprocessedTemplate.tt... GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. CoreCompile: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /platform:x86 /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /debug+ /out:obj\x86\Debug\T4MSBuild.dll /target:library PreprocessedTemplate.cs Template.cs "C:\Users\osych\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cs" CopyFilesToOutputDirectory: Copying file from "obj\x86\Debug\T4MSBuild.dll" to "bin\Debug\T4MSBuild.dll". T4MSBuild -> C:\T4MSBuild\T4MSBuild\bin\Debug\T4MSBuild.dll Copying file from "obj\x86\Debug\T4MSBuild.pdb" to "bin\Debug\T4MSBuild.pdb". Build succeeded. У меня же только такие: 1>------ Build started: Project: ProviderSE, Configuration: Debug Any CPU ------ 1>D:\MAP\CK11\TAS_Integration\EMS\PORTOS\SE\Sources\ProviderSE\ProviderSE.csproj(107,3): warning MSB4011: "C:\Program Files (x86)\MSBuild\12.0\Microsoft.Common.props" cannot be imported again. It was already imported at "D:\MAP\CK11\TAS_Integration\EMS\PORTOS\SE\Sources\ProviderSE\ProviderSE.csproj (3,3)". This is most likely a build authoring error. This subsequent import will be ignored. 1> ProviderSE -> D:\MAP\CK11\TAS_Integration\EMS\PORTOS\SE\Sources\ProviderSE\bin\Debug\ProviderSE.dll ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== Нужно каким-то образом импортировать Microsoft.TextTemplating.targets файл. ??? Что это? Куда и как импортировать? ... |
|||
:
Нравится:
Не нравится:
|
|||
20.04.2015, 16:18 |
|
|
start [/forum/topic.php?fid=17&fpage=15&tid=1349579]: |
0ms |
get settings: |
11ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
74ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
others: | 235ms |
total: | 398ms |
0 / 0 |