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") }; }
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") }; }
/// <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"); }
public EntityFileProvider(ICommerceDataDir commerceDataDir) { DataDir = commerceDataDir; }
public EntityFileProvider(ICommerceDataDir commerceDataDir) { DataDir = commerceDataDir; }
public ProductVariantProvider(ICommerceDataDir dataDir) { this.commerceDataDir = dataDir; this.dataPath = Path.Combine(dataDir.DataPhysicalPath, "ProductVariant"); }
public ProductVariantProvider(ICommerceDataDir dataDir) { this.commerceDataDir = dataDir; this.dataPath = Path.Combine(dataDir.DataPhysicalPath, "ProductVariant"); }
public ImageTypeProvider(ICommerceDataDir dataDir) { this.commerceDataDir = dataDir; this.dataPath = Path.Combine(dataDir.DataPhysicalPath, "ImageType"); }
public CommerceSettingProvider(ICommerceDataDir commerceDataDir) { this._commerceDataDir = commerceDataDir; }
public ImageTypeProvider(ICommerceDataDir dataDir) { this.commerceDataDir = dataDir; this.dataPath = Path.Combine(dataDir.DataPhysicalPath, "ImageType"); }
/// <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"); }