Repository navigation
Expand file tree
/
Copy pathInstallModel.cs
More file actions
38 lines (37 loc) · 1.5 KB
/
Copy pathInstallModel.cs
File metadata and controls
38 lines (37 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using FluentValidation.Attributes;
using Grand.Framework.Mvc.Models;
using Grand.Web.Validators.Install;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Grand.Web.Models.Install
{
[Validator(typeof(InstallValidator))]
public partial class InstallModel : BaseGrandModel
{
public InstallModel()
{
this.AvailableLanguages = new List<SelectListItem>();
this.AvailableCollation = new List<SelectListItem>();
}
public string AdminEmail { get; set; }
[DataType(DataType.Password)]
public string AdminPassword { get; set; }
[DataType(DataType.Password)]
public string ConfirmPassword { get; set; }
public string DatabaseConnectionString { get; set; }
public string DataProvider { get; set; }
public bool MongoDBConnectionInfo { 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; }
public List<SelectListItem> AvailableCollation { get; set; }
}
}