Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7544541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:41:50+00:00 2026-05-30T08:41:50+00:00

A n-tier layer project. In businesslayer, there is a inherited Class Called BaseEdit which

  • 0

A n-tier layer project.

In businesslayer, there is a inherited Class Called BaseEdit which contains contractor and base properties.

There are about 30 CustomEdit (inheriting classes), all of them has methods “Load“,”Save” and “Delete“.

The require for this existing system is to add a readonly user.

Possible solutions considering the cost of works:

1) Modify the BaseEdit so all CustomEdit can stay the same.
The system will check ‘user role’ in session by using httpcontext then to accept or reject the user’s action.

So Question1: Can vb.net achieve this?

‘BaseEdit

Public Function Save() Boolean
 'check session in BusinessLayer, if it is ready only user
 'then Validation is false
End Function

‘CustomEdit

Public Function Save() Boolean
 'Proceed the save
End Function

But when I invoke CustomEdit.Save(), the BaseEdit.Save() will not be invoked.
Seems vb.net doesn’t support this kind of partial methods.
Is there a way to achieve this without changing CustomEdit?

2) In SQL Server, Check Session States and restrict user access to Insert or Update StoredProc.
Question 2: Should it be taken place in SQL Server? Anyone has experiences about this? Any comments for advantage/disadvantage?

Question 3:In my opinion, the user restriction should be achieve in web layer or the Business layer by authentic controls.
Someone told me the security access stuff should be as close as to the database, is it right?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:41:51+00:00Added an answer on May 30, 2026 at 8:41 am

    This question seems very similar to this, and I believe the answer would be valid for you too. Modify BaseEdit to be the only class with Save(), in which you call the abstract “ProtectedSave()”, which all base classes must implement. That way you control what and which methods are executed in the Save() function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am confused about the different possibilities to express a 3-Tier architecture. Data-Access-Layer Business-Layer
I have a pre-existing c++ object model which represents the business layer tier of
I'm starting a new project which in simple terms will have a UI layer
I am working on an n-tier web project, The data access layer is in
I have a 3 tier ASP.NET MVC 3 project that has a data layer,
We are developing an 3-tier application where presentation layer communicates with service layer, which
Folks, I have an ASP.NET project which is pretty n-tier, by namespace, but I
The project I'm working is using n-tier architecture. Our layers are as follows: Data
In an N-Tier app you're supposed to have a business logic layer and a
I have a three tier system, SQL Server backend, hand written data access layer,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.