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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:09:48+00:00 2026-06-02T09:09:48+00:00

Firstly, I’m new. I’m creating a website in .NET and am getting confused by

  • 0

Firstly, I’m new. I’m creating a website in .NET and am getting confused by a few things.
When using a CreateUserWizard control, a database file called aspnetdb.mdf is created automatically.
I am creating a Blackjack game and thus need to initialise values such as totalWins, totalGamesPlayed etc. for each user.
My question is, what is the best method to do so in .NET? Should I add fields to the Users table in aspnetdb.mdf or create a seperate file with a Users table?
Eitherway, how do I populate this table adding a new record for each new user?

  • 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-02T09:09:50+00:00Added an answer on June 2, 2026 at 9:09 am

    I would not mess around with the Users table in aspnetdb.mdf since it’s meant to contain personal information such as username, etc. You should create a separate table called User_Score and work off of that one. You can create a foreign key to the Users table using the user_id (or whatever the suitable key should be).

    As far as populating the data initially, there are many approaches to this, one could be having a trigger that will initialize a record in the User_Score table as soon as a record is created in the User table.

    One approach would be creating a trigger similar to this in the User table:

    CREATE TRIGGER myTrigger 
       ON User 
       AFTER INSERT
    AS BEGIN
       -- INSERT RECORD IN THE User_Score table here
       -- populating the appropriate fields. Example:
      INSERT INTO User_Score (username,columna, columnb, columnc) 
      SELECT username, 0,0,0 from inserted
    END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, I am new to programming. I am currently having a website with 2
Firstly I am using this for the ListView control itself: ItemsSource={Binding AllEffects} So would
Firstly, I'm not using rails. This is vanilla ruby application. I've read about packaging
Firstly, apologies for all the XAML. I've tried for a few days to resolve
Firstly I design the site & convert it into HTML using Twitter bootstrap. The
Firstly, this is a homework assignment, and I am very new to programming in
Firstly, I'm new to Python, Qt and PySide so forgive me if this question
Firstly, let me just say that I'm very new to JSR-170 and Jackrabbit/Lucene in
Firstly let me say I believe immutability is one of the best things one
Firstly I can't get my head around the functional / Lambda aspects of .NET

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.