skip to Main Content

Adding SqlCommand parameters in C# – Asp.net

Please help me to add paramaters in this queryToDB SqlCommand this is the code cons = new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString); cons.Open(); SqlCommand queryToDB = new SqlCommand("INSERT INTO [dbo].[FileUploadDBs] values (@Name, @Path, @Blasted, @CreatedBy, @CreatedDate)", cons); //param.ParameterName "@Name"; //param.Value = prefix + extension;…

VIEW QUESTION

Add root element to response model – Asp.net

I'm writing an ASP.NET Core API, which should follow an existing format. The response should always start with a data element in the json { "data": { "batch_id": null, "created_at": "2019-01-29T16:58:04+00:00", "current_operation": null, "description": "This watch has a new name",…

VIEW QUESTION
Back To Top
Search