Exemplo n.º 1
0
        public ProductTypeTemplatePath(ICommerceDataDir commerceDataDir, ProductType productType)
        {
            var basePhysicalPath = Path.Combine(commerceDataDir.DataPhysicalPath, DirName, productType.Name);
            var baseVirtualPath = UrlUtility.Combine(commerceDataDir.DataVirutalPath, DirName, productType.Name);

            BaseDirPath = new HttpFilePath()
            {
                PhysicalPath = basePhysicalPath,
                VirtualPath = baseVirtualPath
            };

            CustomFieldsTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "CustomFields.cshtml"),
                VirtualPath = UrlUtility.Combine(baseVirtualPath, "CustomFields.cshtml")
            };
            VariantGridTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "VariantGrid.cshtml"),
                VirtualPath = UrlUtility.Combine(baseVirtualPath, "VariantGrid.cshtml")
            };

            VariantCreateTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "VariantCreate.cshtml"),
                VirtualPath = UrlUtility.Combine(baseVirtualPath, "VariantCreate.cshtml")
            };

            VariantEditTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "VariantEdit.cshtml"),
                VirtualPath = UrlUtility.Combine(baseVirtualPath, "VariantEdit.cshtml")
            };
        }
Exemplo n.º 2
0
        public ProductTypeTemplatePath(ICommerceDataDir commerceDataDir, ProductType productType)
        {
            var basePhysicalPath = Path.Combine(commerceDataDir.DataPhysicalPath, DirName, productType.Name);
            var baseVirtualPath  = UrlUtility.Combine(commerceDataDir.DataVirutalPath, DirName, productType.Name);

            BaseDirPath = new HttpFilePath()
            {
                PhysicalPath = basePhysicalPath,
                VirtualPath  = baseVirtualPath
            };

            CustomFieldsTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "CustomFields.cshtml"),
                VirtualPath  = UrlUtility.Combine(baseVirtualPath, "CustomFields.cshtml")
            };
            VariantGridTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "VariantGrid.cshtml"),
                VirtualPath  = UrlUtility.Combine(baseVirtualPath, "VariantGrid.cshtml")
            };

            VariantCreateTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "VariantCreate.cshtml"),
                VirtualPath  = UrlUtility.Combine(baseVirtualPath, "VariantCreate.cshtml")
            };

            VariantEditTemplatePath = new HttpFilePath()
            {
                PhysicalPath = Path.Combine(basePhysicalPath, "VariantEdit.cshtml"),
                VirtualPath  = UrlUtility.Combine(baseVirtualPath, "VariantEdit.cshtml")
            };
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductTypeProvider" /> class.
 /// </summary>
 /// <param name="dataDir">The data dir.</param>
 public ProductTypeProvider(ICommerceDataDir dataDir)
 {
     this.commerceDataDir = dataDir;
     this.baseDataPath    = Path.Combine(dataDir.DataPhysicalPath, "ProductTypes");
 }
Exemplo n.º 4
0
 public EntityFileProvider(ICommerceDataDir commerceDataDir)
 {
     DataDir = commerceDataDir;
 }
Exemplo n.º 5
0
 public EntityFileProvider(ICommerceDataDir commerceDataDir)
 {
     DataDir = commerceDataDir;
 }
Exemplo n.º 6
0
 public ProductVariantProvider(ICommerceDataDir dataDir)
 {
     this.commerceDataDir = dataDir;
     this.dataPath = Path.Combine(dataDir.DataPhysicalPath, "ProductVariant");
 }
Exemplo n.º 7
0
 public ProductVariantProvider(ICommerceDataDir dataDir)
 {
     this.commerceDataDir = dataDir;
     this.dataPath        = Path.Combine(dataDir.DataPhysicalPath, "ProductVariant");
 }
Exemplo n.º 8
0
 public ImageTypeProvider(ICommerceDataDir dataDir)
 {
     this.commerceDataDir = dataDir;
     this.dataPath = Path.Combine(dataDir.DataPhysicalPath, "ImageType");
 }
Exemplo n.º 9
0
 public CommerceSettingProvider(ICommerceDataDir commerceDataDir)
 {
     this._commerceDataDir = commerceDataDir;
 }
Exemplo n.º 10
0
 public ImageTypeProvider(ICommerceDataDir dataDir)
 {
     this.commerceDataDir = dataDir;
     this.dataPath        = Path.Combine(dataDir.DataPhysicalPath, "ImageType");
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductTypeProvider" /> class.
 /// </summary>
 /// <param name="dataDir">The data dir.</param>
 public ProductTypeProvider(ICommerceDataDir dataDir)
 {
     this.commerceDataDir = dataDir;
     this.baseDataPath = Path.Combine(dataDir.DataPhysicalPath, "ProductTypes");
 }