Questions tagged [provider-model]

22 questions
16
votes
2 answers

How to show errors from ChangeNotifier using Provider in Flutter

I'm trying to find the best way to show errors from a Change Notifier Model with Provider through a Snackbar. Is there any built-in way or any advice you could help me with? I found this way that is working but I don't know if it's correct. Suppose…
11
votes
2 answers

Is the Repository Pattern the same as the Asp.net Provider Model?

Since Asp.net 2.0, there is the Provider Model. On the implementation detail, a provider is class derived from ProviderBase which is an abstract class rather than an interface, but anyway the Provider Model is there so that we can have different…
Ray
  • 12,101
  • 27
  • 95
  • 137
8
votes
2 answers

Provider model in .net

When the .net 2.0 framework first came out, the provider model was all the rage. 2.0 even shipped with a bunch of default providers (Membership, sitemap, role). Since the release of 2.0, the hype has died down, and whilst I still use providers day…
lomaxx
  • 113,627
  • 57
  • 144
  • 179
3
votes
2 answers

Converting Single DB ASP.NET Site into MultiTenant - Membership and Roles Dilemma

I'm in the process up changing a single SQL DB website (ASP.NET/VB.NET) into a multitenant app, where each client has their own database. In the old site, all the ASP roles, logins and providers pointed to the single database. Now we have multiple…
DomBat
  • 1,981
  • 5
  • 27
  • 42
3
votes
2 answers

Provider model and performance

Are there any performance implications with using the provider pattern? Does it rely on reflection for each instantiation or anything?
Loadman
  • 8,797
  • 3
  • 17
  • 3
2
votes
1 answer

System.ArgumentNullException when GetDbContext in constructor

I'm trying to use Entity Framework Core with ASP.NET Boilerplate .NET Core, but I don't want to use Repository built-in functions. There is a problem with my DB context; it keeps returning: System.ArgumentNullException: 'Value cannot be null.' for…
2
votes
1 answer

Flutter Provider access via addPostFrameCallback says widget is outside the widget tree but flutter inspector shows otherwise

I am building my first big app in Flutter, and the first one where I need State Management, so I turned to Provider which is the recommended package to use for State Management. However I am having some issues where I declare my Providers in the…
Diego Molina
  • 35
  • 1
  • 8
2
votes
1 answer

Is the Provider Model using the Factory pattern?

Is the Provider Model really just the Factory pattern?
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
1
vote
1 answer

How to implement provider, specifically ChangeNotifierProvider implementation in my Note app

I am learning provider and wanted to implement that in my simple note app. I went through the docs, saw youtube videos and Medium articles about provider implementation, I understood the concept(I think) but I am still a little confused on how to…
1
vote
1 answer

Replacement Implementation for Provider Model in ASP.NET 5

I have existing code that uses System.Configuration.Provider namespace for provider collections to plugin various implementations of interfaces, where multiple implementations exist in the collection and are selected by name according to various…
Joe Audette
  • 35,330
  • 11
  • 106
  • 99
1
vote
2 answers

Provider Model Dependency Injection Implementation in C#

I have an architectural situation that I wanted to get an opinion on. I have a poker system that I am developing. Currently I have many different types of games currently handled by different classes (with a common interface of course). Games…
NickV
  • 549
  • 7
  • 17
0
votes
2 answers

Has anyone been able to use the .NET provider model with a winforms app?

I've seen oodles of examples for ASP.NET, but none for winforms. In other words, using the app.config instead of web.config. It would be a shame if it did not work.
Dave
  • 281
  • 4
  • 10
0
votes
2 answers

What is the best alternative to the ASP.NET Provider Model if using IOC also?

The ASP.NET Provider Model was a great technology to solve the problem of allowing someone to "plug in" a separate implementation of some functionality into a web application. The Provider Model is generally a bit painful to implement requiring…
nootn
  • 851
  • 1
  • 12
  • 16
0
votes
1 answer

Provider Model in ASP.Net MVC 3 -- Using SQL Server 2008 R2 Dev Ed, not defaul SQLExpress

I am currently working on an ASP.Net MVC 3 tutorial on the MS ASP.Net website (MvcMusicStore). I use a database-first approach and have successfully modified the tutorial to access an independently created database through the Entity Framework…
Jack Herr
  • 95
  • 1
  • 11
0
votes
2 answers

Correct way to call an api by provider in fflutter?

I have been trying to make a app in flutter where an api is called and data is updated in TextField Used provider for state management, here is the code for it. class ProfileProvider with ChangeNotifier { var profileData; String _url =…
Alpit Anand
  • 1,213
  • 3
  • 21
  • 37
1
2