Click here to Skip to main content
15,881,089 members
Home / Discussions / Database
   

Database

 
GeneralRe: MongoDB document or model planning, best Pin
jkirkerx24-Aug-18 6:49
professionaljkirkerx24-Aug-18 6:49 
GeneralRe: MongoDB document or model planning, best Pin
jschell25-Aug-18 3:57
jschell25-Aug-18 3:57 
AnswerRe: MongoDB document or model planning, best Pin
dan!sh 23-Aug-18 20:45
professional dan!sh 23-Aug-18 20:45 
GeneralRe: MongoDB document or model planning, best Pin
jkirkerx24-Aug-18 6:50
professionaljkirkerx24-Aug-18 6:50 
GeneralRe: MongoDB document or model planning, best Pin
jschell25-Aug-18 4:00
jschell25-Aug-18 4:00 
AnswerRe: MongoDB document or model planning, best Pin
Nathan Minier24-Aug-18 1:31
professionalNathan Minier24-Aug-18 1:31 
GeneralRe: MongoDB document or model planning, best Pin
jkirkerx24-Aug-18 6:58
professionaljkirkerx24-Aug-18 6:58 
GeneralRe: MongoDB document or model planning, best Pin
jkirkerx24-Aug-18 9:16
professionaljkirkerx24-Aug-18 9:16 
I'm learning here, had to change the model again because I haven't wrote the states yet in the country document, and scratching my head on how to write the states. This is really different.
public class WEBSITE_COUNTRIES
{
    [BsonId]
    [BsonRepresentation(BsonType.ObjectId)]
    public ObjectId Id { get; set; }

    public string DisplayId { get; set; }
    public string LongName { get; set; }
    public string ShortName { get; set; }
    public bool Enabled { get; set; }

    [BsonIgnoreIfNull]
    public IEnumerable<WEBSITE_STATES> States { get; set; }
}
{
    "_id" : ObjectId("5b80576d4989bc2bfcf8ffc9"),
    "DisplayId" : "5b80576d4989bc2bfcf8ffc9",
    "LongName" : "Canada",
    "ShortName" : "CA",
    "Enabled" : true
}
If it ain't broke don't fix it
Discover my world at jkirkerx.com

GeneralRe: MongoDB document or model planning, best Pin
Nathan Minier24-Aug-18 9:28
professionalNathan Minier24-Aug-18 9:28 
GeneralRe: MongoDB document or model planning, best Pin
jkirkerx24-Aug-18 10:07
professionaljkirkerx24-Aug-18 10:07 
GeneralRe: MongoDB document or model planning, best Pin
jschell25-Aug-18 4:03
jschell25-Aug-18 4:03 
GeneralRe: MongoDB document or model planning, best Pin
jkirkerx25-Aug-18 8:12
professionaljkirkerx25-Aug-18 8:12 
GeneralRe: MongoDB document or model planning, best Pin
jschell16-Sep-18 11:00
jschell16-Sep-18 11:00 
QuestionOrders and Supply Pin
Member 1098931222-Aug-18 19:41
Member 1098931222-Aug-18 19:41 
QuestionWhat do you think of MongoDB? Pin
jkirkerx13-Aug-18 13:14
professionaljkirkerx13-Aug-18 13:14 
AnswerRe: What do you think of MongoDB? Pin
Eddy Vluggen14-Aug-18 0:46
professionalEddy Vluggen14-Aug-18 0:46 
GeneralRe: What do you think of MongoDB? Pin
jkirkerx14-Aug-18 7:00
professionaljkirkerx14-Aug-18 7:00 
GeneralRe: What do you think of MongoDB? Pin
Eddy Vluggen14-Aug-18 7:10
professionalEddy Vluggen14-Aug-18 7:10 
GeneralRe: What do you think of MongoDB? Pin
jkirkerx14-Aug-18 8:44
professionaljkirkerx14-Aug-18 8:44 
GeneralRe: What do you think of MongoDB? Pin
Eddy Vluggen14-Aug-18 8:58
professionalEddy Vluggen14-Aug-18 8:58 
GeneralRe: What do you think of MongoDB? Pin
jkirkerx14-Aug-18 13:41
professionaljkirkerx14-Aug-18 13:41 
GeneralRe: What do you think of MongoDB? Pin
Eddy Vluggen14-Aug-18 23:08
professionalEddy Vluggen14-Aug-18 23:08 
GeneralRe: What do you think of MongoDB? Pin
jkirkerx15-Aug-18 7:30
professionaljkirkerx15-Aug-18 7:30 
GeneralRe: What do you think of MongoDB? Pin
Eddy Vluggen15-Aug-18 9:38
professionalEddy Vluggen15-Aug-18 9:38 
GeneralRe: What do you think of MongoDB? Pin
jschell19-Aug-18 8:02
jschell19-Aug-18 8:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.