skip to Main Content

C# .net and Mysql insert statement fails during command execution

I am trying to insert into the mysql database the following record in a Create() method in a Repository class: MySqlCommand command = new MySqlCommand("INSERT INTO `documentdetails` (?dtoDocumentId);", _connection); command.Connection = _connection; command.CommandType = CommandType.Text; command.Parameters.Add("?dtoDocumentId", MySqlDbType.Int64).Value=documentDetail.DocumentId; command.ExecuteNonQuery(); The documentId…

VIEW QUESTION

Visual Studio Code Makefile extension not executing make as expected

Executing make command on this Makefile compiles as expected: #SHELL = /bin/sh APP:= basic-tutorial-2 APP_INSTALL_DIR?= $(HOME)/Projects/test-gstreamer-2/build/bin CC:=/usr/bin/aarch64-linux-gnu-gcc SRCS:= $(wildcard *.c) INCS:= $(wildcard *.h) PKGS:= gstreamer-1.0 OBJS:= $(SRCS:.c=.o) CFLAGS:= $(shell pkg-config --cflags $(PKGS)) LIBS:= $(shell pkg-config --libs $(PKGS)) #$(info $$CFLAGS is…

VIEW QUESTION
Back To Top
Search