public Note_Form(String Login_name) { InitializeComponent(); this.table = new Table(); this.container = Containers.Configure(); this.database = container.Resolve <IDataBase>(); database.openCon(); this.label1.Text = Login_name; Log = Login_name; }
public AbpFileStoringOptions Configure(IConfiguration configuration) { var entries = configuration.Get <Dictionary <string, FileContainerConfigurationEntry> >(); foreach (var entryKv in entries) { var fileProviderConfiguration = Providers.GetConfiguration(entryKv.Value.Provider); if (fileProviderConfiguration == null) { throw new AbpException($"Could not find any provider configuration for '{entryKv.Key}' container, provider:'{entryKv.Value.Provider}'"); } Containers.Configure(entryKv.Key, c => { c.Provider = fileProviderConfiguration.Provider; c.IsMultiTenant = entryKv.Value?.IsMultiTenant ?? false; c.HttpAccess = entryKv.Value?.HttpAccess ?? true; foreach (var defaultNamingNormalizer in fileProviderConfiguration.DefaultNamingNormalizers) { c.NamingNormalizers.Add(defaultNamingNormalizer); } var fileProviderValues = fileProviderConfiguration.GetValues(); foreach (var providerValueKv in fileProviderValues) { entryKv.Value.Properties.TryGetValue(providerValueKv.Key, out string value); var realValue = TypeHelper.ConvertFromString(providerValueKv.Value.Type, value); c.SetConfiguration(providerValueKv.Key, realValue); } }); } return(this); }