GitXplorerGitXplorer
a

CachedRepository

public
118 stars
23 forks
0 issues

Commits

List of commits on branch master.
Unverified
ca6c9f1c607029a59dfa115550be2864fd692f91

Updated to net7

aardalis committed a year ago
Verified
37ef89b063fae78a7dfd44e4ec40fb724a0a4152

Merge pull request #2 from ardalis/dependabot/nuget/src/CachedRepoSample/Microsoft.AspNetCore.All-2.1.4

aardalis committed 5 years ago
Verified
47b6450299a74177f5ee36cd2baead9dbc35af0a

Bump Microsoft.AspNetCore.All in /src/CachedRepoSample

ddependabot[bot] committed 5 years ago
Unverified
c0e3db0307be2ac8d757a7605a29ece86a10a9c7

Update README

aardalis committed 6 years ago
Unverified
b0c403646d431d1412eb16a643e1ce68cd4be2ea

Cleaning up

aardalis committed 6 years ago
Unverified
1903cb0e635d062273405fda84ee1478d8ef32ef

Removing old files

aardalis committed 6 years ago

README

The README file for this repository.

CachedRepository

A sample demonstrating the CachedRepository pattern

Running the Sample

This application uses seed data created by EF Migrations. If you just open it in Visual Studio and run it, it should prompt you to run migrations and then work. You'll need to have a database locally for it to communicate with. The default connection string is in appsettings.json and is looking for Server=(localdb)\mssqllocaldb. Modify your appsettings.json file to reference your database server before running the sample.

If Visual Studio and/or the in-browser middleware don't work, use these command line options:

    dotnet ef database update
    dotnet run

If that fails, another option is to simply delete the Migrations folder and then start with this:

    dotnet ef migrations add Initial
    dotnet ef database update
    dotnet run

Once the app is working, your initial view of the home page should look something like this:

Screenshot

Refresh the page and you should see the data continue to load, but the Load time should be 0 ms or close to zero. The cache is configured to reset every 5 seconds so if you continue refreshing you should periodically see a non-zero load time.

References