Skip to content

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.

1.5 KB
Raw Blame
using Grand.Data;
using Grand.Infrastructure.Models;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.ComponentModel.DataAnnotations;

namespace Grand.Module.Installer.Models;

public class InstallModel : BaseModel
{
    public string? SelectedLanguage { get; set; }

    [DataType(DataType.EmailAddress)]
    public required string AdminEmail { get; set; }

    [DataType(DataType.Password)]
    public required string AdminPassword { get; set; }

    [DataType(DataType.Password)]
    public required string ConfirmPassword { get; set; }

    public string? DatabaseConnectionString { get; set; }
    public DbProvider DataProvider { get; set; }
    public bool SkipConnection { get; set; }
    public bool ConnectionInfo { get; set; }
    public string? MongoDBServerName { get; set; }
    public string? MongoDBDatabaseName { get; set; }
    public string? MongoDBUsername { get; set; }

    [DataType(DataType.Password)] 
    public string? MongoDBPassword { get; set; }

    public bool DisableSampleDataOption { get; set; }
    public bool InstallSampleData { get; set; }
    public bool Installed { get; set; }
    public string? Collation { get; set; }
    public List<SelectListItem> AvailableLanguages { get; set; } = new();
    public List<SelectListItem> AvailableCollation { get; set; } = new();
    public List<SelectListItem> AvailableProviders { get; set; } = new();
    public string? CompanyName { get; set; }
    public string? CompanyAddress { get; set; }
    public string? CompanyPhoneNumber { get; set; }
    public string? CompanyEmail { get; set; }
}