Click here to Skip to main content
15,502,349 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to set null value to a FOREIGN KEY using EF Core Pin
Richard MacCutchan31-Jul-22 22:37
mveRichard MacCutchan31-Jul-22 22:37 
GeneralRe: How to set null value to a FOREIGN KEY using EF Core Pin
Code4Ever31-Jul-22 22:49
Code4Ever31-Jul-22 22:49 
GeneralRe: How to set null value to a FOREIGN KEY using EF Core Pin
Richard MacCutchan31-Jul-22 23:06
mveRichard MacCutchan31-Jul-22 23:06 
GeneralRe: How to set null value to a FOREIGN KEY using EF Core Pin
Code4Ever31-Jul-22 23:17
Code4Ever31-Jul-22 23:17 
GeneralRe: How to set null value to a FOREIGN KEY using EF Core Pin
Dave Kreskowiak1-Aug-22 5:23
mveDave Kreskowiak1-Aug-22 5:23 
AnswerRe: How to set null value to a FOREIGN KEY using EF Core Pin
Richard Deeming1-Aug-22 1:25
mveRichard Deeming1-Aug-22 1:25 
AnswerRe: How to set null value to a FOREIGN KEY using EF Core Pin
Gerry Schmitz1-Aug-22 8:02
mveGerry Schmitz1-Aug-22 8:02 
QuestionMocking HttpContext Pin
SreeRama Govind31-Jul-22 18:26
SreeRama Govind31-Jul-22 18:26 
Hi All,

need to right a test case for webapi which is used to upload a excel sheet. currently to get file into webpai using code like HttpFileCollection file = HttpContext.Current.Request.Files;
Now to write test case for the webapi(with Moq), need to mock HttpContext.Current.Request.Files, this should have data as same as uploading excel file (even its ok to read from share location).

Please suggest the code sample or any working code.

Thanks in Advance.
AnswerRe: Mocking HttpContext Pin
Pete O'Hanlon2-Aug-22 0:26
mvaPete O'Hanlon2-Aug-22 0:26 
GeneralRe: Mocking HttpContext Pin
SreeRama Govind3-Aug-22 9:59
SreeRama Govind3-Aug-22 9:59 
QuestionControlDesigner issue Pin
mo149230-Jul-22 1:51
mo149230-Jul-22 1:51 
AnswerRe: ControlDesigner issue Pin
Gerry Schmitz30-Jul-22 6:04
mveGerry Schmitz30-Jul-22 6:04 
GeneralRe: ControlDesigner issue Pin
mo149230-Jul-22 8:35
mo149230-Jul-22 8:35 
GeneralRe: ControlDesigner issue Pin
Gerry Schmitz30-Jul-22 15:49
mveGerry Schmitz30-Jul-22 15:49 
GeneralRe: ControlDesigner issue Pin
mo149231-Jul-22 7:43
mo149231-Jul-22 7:43 
Questionhow to save Image or Bitmap to svg file Pin
Le@rner29-Jul-22 2:51
Le@rner29-Jul-22 2:51 
AnswerRe: how to save Image or Bitmap to svg file Pin
OriginalGriff29-Jul-22 3:19
mveOriginalGriff29-Jul-22 3:19 
AnswerRe: how to save Image or Bitmap to svg file Pin
Gerry Schmitz29-Jul-22 9:38
mveGerry Schmitz29-Jul-22 9:38 
AnswerRe: how to save Image or Bitmap to svg file Pin
Calin Negru30-Jul-22 3:42
Calin Negru30-Jul-22 3:42 
QuestionCan you use sqlite in vs2022? CLOSED Pin
mo149228-Jul-22 14:18
mo149228-Jul-22 14:18 
AnswerRe: Can you use sqlite in vs2022? CLOSED Pin
OriginalGriff28-Jul-22 20:00
mveOriginalGriff28-Jul-22 20:00 
QuestionC# Set voice in Text to Speech Pin
Rockallica27-Jul-22 18:02
Rockallica27-Jul-22 18:02 
AnswerRe: C# Set voice in Text to Speech Pin
OriginalGriff27-Jul-22 21:16
mveOriginalGriff27-Jul-22 21:16 
GeneralRe: C# Set voice in Text to Speech Pin
Rockallica28-Jul-22 9:39
Rockallica28-Jul-22 9:39 
GeneralRe: C# Set voice in Text to Speech Pin
OriginalGriff28-Jul-22 9:52
mveOriginalGriff28-Jul-22 9:52 

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.