Repository navigation
the using sample #3
Replies: 4 comments
|
hi, an example of what? |
|
Can you provide test code?eg:asp.net mvc or console program that using this framework. |
|
now using this framework by asp.net MVC,and necessary use document. |
|
Better late than never - adding a minimal console example for anyone who lands here. The moving parts: ConnectionFactory (wraps the connection + transaction, takes a SimpleInjector Container), DapperRepository for CRUD, and UnitOfWork if you need transactional scope. Models inherit BaseModel with a [Key] property - Save() decides insert vs update by whether the key is 0. Connection string comes from app.config (the factory picks it up via the base class). For MVC it's the same wiring, just done once in Application_Start. Closing the loop on this one - if anything's off in newer setups, comment and I'll update the sample. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
The framework can be used as an example
e used as an example
All reactions