Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

DataConfigModel.cs

using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc.Rendering;
using Nop.Web.Framework.Models;
using Nop.Web.Framework.Mvc.ModelBinding;

namespace Nop.Web.Areas.Admin.Models.Settings;

public partial record DataConfigModel : BaseNopModel, IConfigModel
{
    #region Properties

    [NopResourceDisplayName("Admin.Configuration.AppSettings.Data.ConnectionString")]
    public string ConnectionString { get; set; }

    [NopResourceDisplayName("Admin.Configuration.AppSettings.Data.DataProvider")]
    public int DataProvider { get; set; }
    public SelectList DataProviderTypeValues { get; set; }

    [NopResourceDisplayName("Admin.Configuration.AppSettings.Data.SQLCommandTimeout")]
    [UIHint("Int32Nullable")]
    public int? SQLCommandTimeout { get; set; }

    [NopResourceDisplayName("Admin.Configuration.AppSettings.Data.WithNoLock")]
    public bool WithNoLock { get; set; }

    #endregion
}