From 39f2accf324ba18409ed7fe0d77178cc83f2500f Mon Sep 17 00:00:00 2001 From: Ziya Mollamahmut Date: Wed, 6 Oct 2021 13:08:04 +0300 Subject: [PATCH] Fixes #7 --- XLocalizer.DB/Models/XDbCulture.cs | 2 +- XLocalizer.DB/Models/XDbResource.cs | 2 +- XLocalizer.DB/XLocalizer.DB.csproj | 11 +++++------ 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/XLocalizer.DB/Models/XDbCulture.cs b/XLocalizer.DB/Models/XDbCulture.cs index bfb0878..bcc9e7c 100644 --- a/XLocalizer.DB/Models/XDbCulture.cs +++ b/XLocalizer.DB/Models/XDbCulture.cs @@ -34,6 +34,6 @@ public class XDbCulture /// /// Collection of localized values /// - public ICollection Translations { get; set; } + public virtual ICollection Translations { get; set; } } } diff --git a/XLocalizer.DB/Models/XDbResource.cs b/XLocalizer.DB/Models/XDbResource.cs index 1603ac3..f9cd8fa 100644 --- a/XLocalizer.DB/Models/XDbResource.cs +++ b/XLocalizer.DB/Models/XDbResource.cs @@ -35,7 +35,7 @@ public class XDbResource : IXDbResource /// /// Cultre /// - public XDbCulture Culture { get; set; } + public virtual XDbCulture Culture { get; set; } /// /// Enable, disable diff --git a/XLocalizer.DB/XLocalizer.DB.csproj b/XLocalizer.DB/XLocalizer.DB.csproj index 125a930..ecc9075 100644 --- a/XLocalizer.DB/XLocalizer.DB.csproj +++ b/XLocalizer.DB/XLocalizer.DB.csproj @@ -11,17 +11,16 @@ Database provider for XLocalizer. Ziyad.info - http://docs.ziyad.info/XLocalizer + https://docs.ziyad.info/en/XLocalizer asp.net, core, razor, mvc, localization, globalization, client side, validation,scripts - - New option LocalizeDefaultCulture, for more details see: https://github.com/LazZiya/XLocalizer/issues/19#issuecomment-820531828 - Release notes: https://github.com/LazZiya/XLocalizer.DB/releases + - Fix: EFCore UseLazyLoadingProxies prevents usage of DB store #7 https://github.com/LazZiya/XLocalizer.DB/issues/7 Docs: https://docs.ziyad.info - 1.0.2 + 1.0.3 - 1.0.2.0 - 1.0.2.0 + 1.0.3.0 + 1.0.3.0 false MIT https://github.com/LazZiya/XLocalizer.DB/raw/master/XLocalizer.DB/files/icon.png