This commit is contained in:
Paul Schneider 2015-01-27 14:17:33 +01:00
commit 93c18633b9
28 changed files with 338 additions and 150 deletions

View file

@ -7,6 +7,7 @@ using Yavsc.Model.WorkFlow;
using System.Web.Mvc;
using System.Configuration.Provider;
using System.Collections.Generic;
using Yavsc.Model.FrontOffice;
namespace WorkFlowProvider
{
@ -18,7 +19,7 @@ namespace WorkFlowProvider
using (NpgsqlConnection cnx = CreateConnection ()) {
using (NpgsqlCommand cmd = cnx.CreateCommand ()) {
cmd.CommandText =
"insert into commandes (pref,creation) values (@pref,@creat) returning _id";
"insert into commandes (prdref,creation) values (@pref,@creat) returning id";
cmd.Parameters.Add ("@pref", com.ProdRef);
cmd.Parameters.Add ("@creat", com.CreationDate);
cnx.Open ();