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 7995121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:19:04+00:00 2026-06-04T14:19:04+00:00

I have made the database using ASP.Net Configuration(aspnet_regsql.exe tool) . I want to use

  • 0

I have made the database using ASP.Net Configuration(aspnet_regsql.exe tool) . I want to use EF 4.1 to write the
Data Access Layer. (I’ll then use it in a WCF service and consume services from a WPF application)

How can I use EF 4.1 to do that …..

So for a simple demo sake .. I want to write Functions for User Management

I know I have to use DataBase first (IN EF 4.1) approach .. but there are so many tables and usually Database entry is done using Stored Procedures(Or the classes provided by the Sql Membership Provider)…. and when I add one user or role… Many tables get Updated simultaneously (Sp’s does that) … will EF 4.1 will do the same by examining the structure of database..

I cant write any code because I don’t know how to start off (except I have made the database)

How can I mimic the same behavior using EF 4.1

Any pointers in this regard will be helpful.

  • 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-06-04T14:19:05+00:00Added an answer on June 4, 2026 at 2:19 pm

    I want to write Functions for User Management

    No you don’t or at least you should not! Membership API is self contained. It contains whole logic for user management and that logic is divided between .NET and stored procedures. If you want to access the API through WCF either use Authentication Service directly or wrap the standard API calls into new WCF service without working directly with database.

    Direct access to membership database means breaking membership API contract and in most cases it also means creating less secure and less encapsulated solution. Standard membership and role classes cannot be mapped with EF back to membership database – you will have to create your own entities which will break the original encapsulation.

    If you just want to create custom authentication and you don’t want to use anything from Membership API except the database you should create your own database for your exact requirements.

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

Sidebar

Related Questions

i am using fullcalendar with ASP.net(C#) in my web-application so i made use of
I have made an application in javascript using HTML fields in asp.net, as asp
Have been learning ASP.NET (using C#) over the past few days. I have made
I'm using ASP.net and an SQL database. I have a blog like system where
I have a pre-made SQLite database that I am downloading from the net via
I have made a registration program. Making use of mysql database. Can I still
i have a windows application made in VB.NET which maintains a database, and i
I have an access database, with a query made. I need to automate it
I have made an asp.net page which executes a long sp. lets say the
I have an application developed in ASP.NET MVC using Entity Framework / Sql Server

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.