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 Grand.Infrastructure.ModelBinding;
using Grand.Infrastructure.Models;
using Grand.Infrastructure.Validators;
using Grand.Web.Common.Models;
using Grand.Web.Vendor.Models.Common;
namespace Grand.Web.Vendor.Models.Vendor;
public class VendorModel : BaseEntityModel, ILocalizedModel<VendorLocalizedModel>
{
[GrandResourceDisplayName("Vendor.Fields.Name")]
public string Name { get; set; }
[GrandResourceDisplayName("Vendor.Fields.Email")]
public string Email { get; set; }
[GrandResourceDisplayName("Vendor.Fields.Description")]
[SanitizeHtml]
public string Description { get; set; }
[GrandResourceDisplayName("Vendor.Fields.MetaKeywords")]
[NoHtml]
public string MetaKeywords { get; set; }
[GrandResourceDisplayName("Vendor.Fields.MetaDescription")]
[NoHtml]
public string MetaDescription { get; set; }
[GrandResourceDisplayName("Vendor.Fields.MetaTitle")]
[NoHtml]
public string MetaTitle { get; set; }
[GrandResourceDisplayName("Vendor.Fields.SeName")]
public string SeName { get; set; }
[GrandResourceDisplayName("Vendor.Fields.PageSize")]
public int PageSize { get; set; }
[GrandResourceDisplayName("Vendor.Fields.AllowCustomersToSelectPageSize")]
public bool AllowCustomersToSelectPageSize { get; set; }
[GrandResourceDisplayName("Vendor.Fields.PageSizeOptions")]
public string PageSizeOptions { get; set; }
public AddressModel Address { get; set; } = new();
public IList<VendorLocalizedModel> Locales { get; set; } = new List<VendorLocalizedModel>();
}
public class VendorLocalizedModel : ILocalizedModelLocal, ISlugModelLocal
{
[GrandResourceDisplayName("Vendor.Fields.Name")]
public string Name { get; set; }
[GrandResourceDisplayName("Vendor.Fields.Description")]
[SanitizeHtml]
public string Description { get; set; }
[GrandResourceDisplayName("Vendor.Fields.MetaKeywords")]
[NoHtml]
public string MetaKeywords { get; set; }
[GrandResourceDisplayName("Vendor.Fields.MetaDescription")]
[NoHtml]
public string MetaDescription { get; set; }
[GrandResourceDisplayName("Vendor.Fields.MetaTitle")]
[NoHtml]
public string MetaTitle { get; set; }
public string LanguageId { get; set; }
[GrandResourceDisplayName("Vendor.Fields.SeName")]
public string SeName { get; set; }
}