Int res2=db. Ado. ExecuteCommand ($" INSERT INTO TransHistory (Tel, OutAmount, CreateDate) VALUES ({Tel}, {OutSum}, '{DateTime. Now the ToShortDateString (). The ToString ()}' ");
CodePudding user response:
What type of CreateDateCodePudding user response:
You end up working as a bracketsInt res2=db. Ado. ExecuteCommand ($" INSERT INTO TransHistory (Tel, OutAmount, CreateDate) VALUES ({Tel}, {OutSum}, '{DateTime. Now the ToShortDateString (). The ToString ()}' ) ");