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.SharedKernel.Attributes;
namespace Grand.Domain;
public abstract class ParentEntity
{
private string _id;
protected ParentEntity()
{
_id = UniqueIdentifier.New;
}
[DBFieldName("_id")]
public string Id {
get => _id;
set => _id = string.IsNullOrEmpty(value) ? UniqueIdentifier.New : value;
}
}