私はこのコードを持っています
public void insertAssignment(long mediaEvent_ID, long mediaBranch_ID,
int? isPremiere, int? isNew, int? isLastChance,
int? isPrevShown, int season_ID, int? audio_ID,
int? video_ID, DateTime startdate)
{
query = "insert into Assignment Values(" + mediaEvent_ID+ ","
+ mediaBranch_ID + "," + isPremiere + "," + isNew + ","
+ isLastChance + "," + isPrevShown
+ "," + season_ID + "," + audio_ID + "," + video_ID + ",'" +
startdate.ToString("MM/dd/yyyy") + ")"; }
問題のような属性がnullの場合、挿入中にisPremiere=null
問題がありますinsert {values(mediaEvent,mediaBranch,(is empty not contains a values ),......)}
この問題を解決するにはどうすればよいですか?