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

  • Home
  • SEARCH
  • 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 312513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:01:23+00:00 2026-05-12T08:01:23+00:00

After using .NET for several years, I’ve spent the last few months in the

  • 0

After using .NET for several years, I’ve spent the last few months in the far off land of Ruby on Rails. While I can clearly see where much of Microsoft’s MVC framework got it’s influence, one of the things that I find myself suddenly missing when development in .NET are the Rails Model callbacks.

Specifically, you can add a callback to before_save, after_save, before_create, after_create, etc. and then specify a function to be called at those points in execution (which seems very similar to aspect oriented programming).

My question is, out of the box, does .NET 3.5/ASP.NET MVC offer anything similar to the callbacks in Rails? For example, if I have an inserted_datetime and updated_datetime column on one of my database tables, instead of making sure those columns get updated in the controller, I’d like to be able to tell my model that every time the “Group” object gets saved to the database, update the updated_datetime column.

Is this possible? Does this question even make sense?

  • 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-12T08:01:23+00:00Added an answer on May 12, 2026 at 8:01 am

    Out of the box LINQ to SQL does a bit of that. It calls a OnMYFIELDChanging and OnMYFIELDChanged events.

    Not as feature rich as you are now used to but i think you can extend this yourself.

    Not even sure I got this answer right to be honest.

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

Sidebar

Related Questions

I am looking into using Lucene.NET after reading some bad reviews of SQL Server's
I am using an open source .Net library which uses MSMQ underneath. After about
I wish to execute a javascript function after asp.net postback with out using ajax.
Using Entity Framework, I suddenly get this strange error after publishing my asp.net mvc
In have my application configured in asp.net. I am using ajaxcontroltoolkit. After building the
after using own custom cms for over 6 years, I decided to go for
I'm in the process of developing an ASP.NET MVC project, and after several weeks
I've built a .NET console application which worked fine for several years. Since November
I'm writing a pretty complex web form using ASP.NET Dynamic Data. Several of the
I'm using AWS SDK for .NET to upload several images. Before making the PutObjectRequest,

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.