Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using System.Text.Json;
namespace Grand.Domain.Configuration;
public static class SettingExtensions
{
public static Setting CreateSetting<T>(T settings, string storeId = "") where T : ISettings, new()
{
var setting = new Setting {
Name = typeof(T).Name.ToLowerInvariant(),
Metadata = JsonSerializer.Serialize(settings),
StoreId = storeId
};
return setting;
}
}