DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Developing and Deploying ASP.NET Core and Entity Framework Core for Azure
  • All Things ASP.NET Core and MVC: Tutorials and Articles
  • Add Watermark Text to Images in ASP.NET MVC
  • OAuth Implicit flow Using Angular 6 and ASP.NET MVC Core

Trending

  • How to Submit a Post to DZone
  • Automated Testing Lifecycle
  • Automated Testing: The Missing Piece of Your CI/CD Puzzle
  • Revolutionizing Software Testing
  1. DZone
  2. Coding
  3. Frameworks
  4. Review: S#arp Lite, a Lightweight Framework for Delivering ASP.NET MVC Solutions (Part 1)

Review: S#arp Lite, a Lightweight Framework for Delivering ASP.NET MVC Solutions (Part 1)

Oren Eini user avatar by
Oren Eini
·
Mar. 01, 12 · News
Like (0)
Save
Tweet
Share
4.13K Views

Join the DZone community and get the full member experience.

Join For Free

this is a review of the s#arp lite project , the version from nov 4, 2011.

i was asked to review this project a long time ago, but i never got around to it. i had some time and i decided that i might take a look and see how it goes. i don’t like the s#arp arch project, because it seems too complex and heavy weight for the purpose.

the project comes with a sample application, which is good, because it is easy to see how the framework is intended to be used. unfortunately, it is yet another online store example, i am getting heartily sick of that. on the other hand, it is a fairly simple model and easy to understand, so i grok why this keeps getting chosen.

review rule, i look at the code . if i wanted to deal with documentation, i would write some for our products. i am doing this because i find it fun to look at other people’s code. so skip any comments about “if you read the docs…”.

we start from the project structure:

image

i am not sure if i like it, i don’t know if i agree that all of those splits are needed, but this is well within reasonable limits, so i am willing to let it slide on the grounds that this is personal taste more than anything else. looking at the dependencies, we see:

image

the init project contains two files, which are responsible for… well, starting up, it seems. again, i don’t see any reason why this would be a separate project, but that is about it so far.

next in line is the nhibernateprovider project, in this case, we have the following:

image

so far, i am cautiously optimistic. all of the files / folders marked with red are actually all about setting nhibernate up , not about hiding it. but then we get to the read me file, which reads in part:

this folder contains any concrete, nhibernate-specific query classes.
there should only be classes in here for any respective query *interfaces* found in
/mystore.domain/queries/

this folder will usually be empty except for very exceptive cases.

this is… interesting. can’t say whatever i agree or not yet. looking at the queryforproductordersummaries, we see:

image

note the comment, there are better ways to do it, but we demonstrate an ugly way, and how to nicely encapsulate it.

that is enough for now, i think, next post, i’ll touch on the actual model…

ASP.NET MVC ASP.NET Framework

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Developing and Deploying ASP.NET Core and Entity Framework Core for Azure
  • All Things ASP.NET Core and MVC: Tutorials and Articles
  • Add Watermark Text to Images in ASP.NET MVC
  • OAuth Implicit flow Using Angular 6 and ASP.NET MVC Core

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: