Quantcast
Channel: dbschemareader Discussions Rss Feed
Viewing all articles
Browse latest Browse all 166

New Post: Discover One to One Relationship

$
0
0
Is there a way to discover whether a table has a one-to-one relationship to another table. For example:

class User{
public string UserDetailId {get; set; }
public virtual UserDetail UserDetail {get; set; }
}

class UserDetail {
public string UserDetailId {get; set; }
public virtual User User {get; set; }
}

UserDetailId would give a ForeignKey however, UserDetail would not relate directly back to User

Viewing all articles
Browse latest Browse all 166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>