You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2017/07/06 11:47:00 UTC

[jira] [Resolved] (IGNITE-5661) .NET: serialization failed when entity has property with IList and equals to null

     [ https://issues.apache.org/jira/browse/IGNITE-5661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pavel Tupitsyn resolved IGNITE-5661.
------------------------------------
    Resolution: Cannot Reproduce
      Assignee: Pavel Tupitsyn

> .NET: serialization failed when entity has property with IList and equals to null
> ---------------------------------------------------------------------------------
>
>                 Key: IGNITE-5661
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5661
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.0
>         Environment: windows server 2012 x64
>            Reporter: Chris Wang
>            Assignee: Pavel Tupitsyn
>              Labels: .NET
>
> when using datastreamer or cache.put, insert entities into a cache, if there are some properties with IList type and value is null, serialization might failed, and no cache exists in H2 database even queryentities has been configured. but cache.count() return the count that inserted.
> like codes below generates an empty cache in ignite h2 db:
> {code:java}
>                     using (var dc = GetDbContext(branchId)) //dc is DbContext
>                     {
>                         var infoList = dc.Set<CustMainInfo>().AsNoTracking().Where(cust => cust.BranchID == branchId && cust.DeleteFlag == 0).ToList(); //CustMainInfo has a property IList<Company> Subsidaries and value is null.
>                         foreach (var item in infoList)
>                         {
>                             ds.AddData(item.PK, item);
>                             count++;
>                             if (count % 1000 == 0)
>                                 Console.WriteLine(string.Format("CustMainInfoLoader:{0}", count));
>                         }
>                         ds.Flush();
>                     }
>                 
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)