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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:40:50+00:00 2026-05-28T06:40:50+00:00

Using Entity Framework 4.1 code first and POCO entities in MVC3; I would like

  • 0

Using Entity Framework 4.1 code first and POCO entities in MVC3; I would like to create a single-row table called ActiveBlog, which has an id, and holds a reference to a blog table.

ActiveBlog
PK: ID, FK: BlogID

How can I define a table, both in the database and in my POCO entity, that is constraint to only hold one row?

  • 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-28T06:40:51+00:00Added an answer on May 28, 2026 at 6:40 am

    Set a trigger in your database. See http://social.msdn.microsoft.com/forums/en-us/sqldatabaseengine/thread/FCC7CECA-CF2F-42E2-8E79-1DCB5A3B82EC

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

Sidebar

Related Questions

I am using Entity Framework Code First to create a database table. My model
I'm writing an ASP.net MVC3 application using Entity Framework Code First and SqlCe4. I
Possible Duplicate: Entity Framework Code First: decimal precision I'm using Linq-to-Entities with the EntityFramework
Using Entity Framework Code First CTP5, how do I create a primary key column
I'm making a DataService with Entity Framework 4.1 using Code First POCO objects. I
I am using Entity Framework Code First. I want to query entites from database
I'm creating a application using entity framework code-first and i'm facing some problems with
I have been using Entity Framework CTP with Code-First as in this tutorial by
Background We have a WinForms application with Entity Framework 4.2 code-first / FluentAPI using
I am successfully creating database (SQL Ce) using Entity Framework Code First approach (C#-WPF).

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.