Click here to Skip to main content
15,885,309 members
Home / Discussions / Database
   

Database

 
QuestionError passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
jkirkerx27-Sep-18 12:41
professionaljkirkerx27-Sep-18 12:41 
AnswerRe: Error passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
Nathan Minier28-Sep-18 1:19
professionalNathan Minier28-Sep-18 1:19 
GeneralRe: Error passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
jkirkerx28-Sep-18 8:02
professionaljkirkerx28-Sep-18 8:02 
GeneralRe: Error passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
jkirkerx28-Sep-18 8:17
professionaljkirkerx28-Sep-18 8:17 
GeneralRe: Error passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
Nathan Minier28-Sep-18 8:45
professionalNathan Minier28-Sep-18 8:45 
GeneralRe: Error passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
jkirkerx28-Sep-18 12:18
professionaljkirkerx28-Sep-18 12:18 
AnswerRe: Error passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
jschell28-Sep-18 11:25
jschell28-Sep-18 11:25 
GeneralRe: Error passing MongoDB ObjectID back to .Net Core 2.1 Controller Pin
jkirkerx28-Sep-18 12:44
professionaljkirkerx28-Sep-18 12:44 
I saw some examples of serializing and deserializing the ObjectId. But wanted to see some progress or get my mean stack working first.

In the database I stored the #C .Net ObjectId, but say on a Http Get request Angular got it as a simple string. Send it from Angular back to the controller with a Put or Post sent the string, but the controller was looking for the ObjectId.
I get it now, since I took the ObjectId out of the model and can Get, Post, Put, Delete now.
I'll take your thoughts and research more on it, do some test.

Overall:
This Portfolio module I just wrote in Angular 6 TypeScript is pretty slick. Drag and Drop, Select image button and extract it as a base64 string and update the thumbnail preview. You can change the image as many times as you want, I don't care. Then submit and fire off the model to the controller, controller processes the image, even flips it around if it's from an iPhone, write it's to disk, creates a MongoDB document, then updates the model and sends it back to Angular and updates the page. I just need a pretty progress icon now.

I wrote very few lines of code, mostly worked on keeping really small and compact and tons of research and experimenting.
730 lines. I should measure the image data and store it in the database to detect image updates, and then fire off the graphics mode.
If it ain't broke don't fix it
Discover my world at jkirkerx.com

QuestionRun correctly from code VB.NET Pin
Computechsoft23-Sep-18 22:07
Computechsoft23-Sep-18 22:07 
AnswerRe: Run correctly from code VB.NET Pin
Richard MacCutchan23-Sep-18 22:13
mveRichard MacCutchan23-Sep-18 22:13 
GeneralRe: Run correctly from code VB.NET Pin
Computechsoft23-Sep-18 22:34
Computechsoft23-Sep-18 22:34 
GeneralRe: Run correctly from code VB.NET Pin
Richard MacCutchan23-Sep-18 22:50
mveRichard MacCutchan23-Sep-18 22:50 
GeneralRe: Run correctly from code VB.NET Pin
Computechsoft23-Sep-18 23:02
Computechsoft23-Sep-18 23:02 
GeneralRe: Run correctly from code VB.NET Pin
Richard MacCutchan23-Sep-18 23:11
mveRichard MacCutchan23-Sep-18 23:11 
GeneralRe: Run correctly from code VB.NET Pin
Richard Deeming24-Sep-18 8:13
mveRichard Deeming24-Sep-18 8:13 
AnswerRe: Run correctly from code VB.NET Pin
thatraja23-Sep-18 23:21
professionalthatraja23-Sep-18 23:21 
QuestionHow to retrieve List content in JSP from Hibernate Query Language Pin
Mr ARUL SUJU D15-Sep-18 12:38
Mr ARUL SUJU D15-Sep-18 12:38 
Questionstoring a byte[] array in MongoDB Pin
jkirkerx6-Sep-18 12:42
professionaljkirkerx6-Sep-18 12:42 
AnswerRe: storing a byte[] array in MongoDB [solved] Pin
jkirkerx7-Sep-18 6:53
professionaljkirkerx7-Sep-18 6:53 
GeneralRe: storing a byte[] array in MongoDB [solved] Pin
Nathan Minier11-Sep-18 3:09
professionalNathan Minier11-Sep-18 3:09 
GeneralRe: storing a byte[] array in MongoDB [solved] Pin
jkirkerx13-Sep-18 18:48
professionaljkirkerx13-Sep-18 18:48 
QuestionCreate View from another View Pin
jar86956-Sep-18 1:59
jar86956-Sep-18 1:59 
AnswerRe: Create View from another View Pin
Mycroft Holmes6-Sep-18 12:28
professionalMycroft Holmes6-Sep-18 12:28 
QuestionUnable to Get the Proper Result : SQL Query Help Needed Pin
arulsuju29-Aug-18 12:14
arulsuju29-Aug-18 12:14 
SuggestionRe: Unable to Get the Proper Result : SQL Query Help Needed Pin
Richard Deeming30-Aug-18 1:37
mveRichard Deeming30-Aug-18 1:37 

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.