[
https://issues.apache.org/jira/browse/IGNITE-1915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15651270#comment-15651270
]
Pavel Tupitsyn commented on IGNITE-1915:
----------------------------------------
How to test:
* Create a new Console Application project in Visual Studio
* Install EntityFramework packages to work with SQL CE: Install-Package
EntityFramework.SqlServerCompact
* Paste the code from attached Program.cs. It uses Entity Framework without any
caching. Run the code and verify that it creates and queries an object,
printing "Hello!"
* Install Apache.Ignite.EntityFramework NuGet package (nightly build can be
installed via {code} Install-Package Apache.Ignite.EntityFramework -Pre -Source
https://www.myget.org/F/apache-ignite-net-nightly{code})
* Mark FooContext class with
{code}[DbConfigurationType(typeof(IgniteDbConfiguration))]{code}
* Run the program again and verify that it works: Ignite node starts, then
"Hello!" is printed like before
* Add the following to the end of the main method:
{code}
using (var ctx = new FooContext())
{
Console.WriteLine(ctx.Foos.Single().Bar);
}
foreach (var cacheName in Ignition.GetIgnite().GetCacheNames())
{
Console.WriteLine(">>> " + cacheName);
foreach (var e in Ignition.GetIgnite().GetCache<object,
object>(cacheName).WithKeepBinary<object, object>())
{
Console.WriteLine(e);
}
}
{code}
Verify that the output is similar to:
{code}
Hello!
Hello!
>>> entityFrameworkQueryCache_metadata
CacheEntry [Key=Foo, Value=1]
>>> entityFrameworkQueryCache_data
CacheEntry [Key=PlatformDotNetEntityFrameworkCacheKey [idHash=29530116],
Value=PlatformDotNetEntityFrameworkCacheEntry [idHash=64444454]]
CacheEntry [Key=PlatformDotNetEntityFrameworkCacheKey [idHash=43129175],
Value=PlatformDotNetEntityFrameworkCacheEntry [idHash=52618256]]
CacheEntry [Key=PlatformDotNetEntityFrameworkCacheKey [idHash=3802258],
Value=PlatformDotNetEntityFrameworkCacheEntry [idHash=34220326]]
{code}
> .NET: Ignite as Entity Framework Second-Level Cache
> ---------------------------------------------------
>
> Key: IGNITE-1915
> URL: https://issues.apache.org/jira/browse/IGNITE-1915
> Project: Ignite
> Issue Type: Task
> Components: platforms
> Affects Versions: 1.1.4
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Labels: .net, roadmap
> Fix For: 1.8
>
> Attachments: Program.cs
>
>
> Entity Framework is #1 ORM for .NET
> We should provide easy solution to boost Entity Framework performance with
> Ignite.
> EF5 and EF6 have different 2nd level cache mechanisms (EF5 has a built-in
> one, EF6 requies more customization or a 3rd party lib like
> https://efcache.codeplex.com/). For now, let's do EF6 only.
> This should be in a separate assembly and a separate NuGet package.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)