<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sergio Di Fiore</title>
    <description>The latest articles on DEV Community by Sergio Di Fiore (@sdifiore).</description>
    <link>https://dev.to/sdifiore</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F421520%2Fe8ca784d-4cf8-4d84-b014-f6647eb2e892.jpeg</url>
      <title>DEV Community: Sergio Di Fiore</title>
      <link>https://dev.to/sdifiore</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sdifiore"/>
    <language>en</language>
    <item>
      <title>EF Core Saving error for two objects depending on a second equal one</title>
      <dc:creator>Sergio Di Fiore</dc:creator>
      <pubDate>Wed, 07 Oct 2020 21:06:11 +0000</pubDate>
      <link>https://dev.to/sdifiore/ef-core-saving-error-for-two-objects-depending-on-a-second-equal-one-23d</link>
      <guid>https://dev.to/sdifiore/ef-core-saving-error-for-two-objects-depending-on-a-second-equal-one-23d</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/64226850/ef-core-saving-error-for-two-objects-depending-on-a-second-equal-one" rel="noopener noreferrer"&gt;
            EF Core Saving error for two objects depending on a second equal one
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Oct  6 '20&lt;/span&gt;
            &lt;span&gt;Comments: 10&lt;/span&gt;
            &lt;span&gt;Answers: 2&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/64226850/ef-core-saving-error-for-two-objects-depending-on-a-second-equal-one" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          -1
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I have a vey long long POCO class ("FichaCliente") that I'll simplify here emphasizing the property that's an ObservableCollection:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{
  public int FichaCliente1 { get; set; }
  public int FichaClienteN { get; set; }

  public ObservableCollection&amp;lt;Reclamado&amp;gt; Reclamados { get; set; }

  public int FichaClienteN+2 { get; set; }
  ...&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/64226850/ef-core-saving-error-for-two-objects-depending-on-a-second-equal-one" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>EF on NET.CORE dbcontext not loading in WPF page on</title>
      <dc:creator>Sergio Di Fiore</dc:creator>
      <pubDate>Wed, 01 Jul 2020 13:34:09 +0000</pubDate>
      <link>https://dev.to/sdifiore/ef-on-net-core-dbcontext-not-loading-in-wpf-page-on-3oc8</link>
      <guid>https://dev.to/sdifiore/ef-on-net-core-dbcontext-not-loading-in-wpf-page-on-3oc8</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/62664191/ef-on-net-core-dbcontext-not-loading-in-wpf-page-on" rel="noopener noreferrer"&gt;
            EF on NET.CORE dbcontext not loading in WPF page on
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jun 30 '20&lt;/span&gt;
            &lt;span&gt;Comments: 16&lt;/span&gt;
            &lt;span&gt;Answers: 0&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/62664191/ef-on-net-core-dbcontext-not-loading-in-wpf-page-on" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          0
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;A system in NET.Core 3.1 and WPF has the following DbContext:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;public class DataContext : DbContext
{
    public DataContext(DbContextOptions&amp;lt;DataContext&amp;gt; options) : base(options) { }
    public DbSet&amp;lt;Role&amp;gt; Roles { get; set; }
    public DbSet&amp;lt;Usuario&amp;gt; Usuarios { get; set; }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The ConfigureDervices in App.xaml.cs is as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;private void ConfigureServices(IConfiguration configuration,&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/62664191/ef-on-net-core-dbcontext-not-loading-in-wpf-page-on" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Question&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
  </channel>
</rss>
