Beispiel #1
0
        static public String GetInsertSQL(ImageResult imageResult)
        {
            StringBuilder SQL = new StringBuilder();

            SQL.AppendLine("Insert into Images (ImageID,Centered,CenterResult,DesignID,DesignResult,Angle,AngleResult,Date,DateResult) values (");
            SQL.Append(imageResult.ImageID + ",");
            SQL.Append(imageResult.Centered + ",");
            SQL.Append(imageResult.CenterResult + ",");
            SQL.Append(imageResult.DesignID + ",");
            SQL.Append(imageResult.DesignResult + ",");
            SQL.Append(imageResult.Angle + ",");
            SQL.Append(imageResult.AngleResult + ",");
            SQL.Append(imageResult.Date + ",");
            SQL.AppendLine(imageResult.DateResult + ");");
            return(SQL.ToString());
        }
Beispiel #2
0
 public static String GetInsertSQL(ImageResult imageResult)
 {
     StringBuilder SQL = new StringBuilder();
     SQL.AppendLine("Insert into Images (ImageID,Centered,CenterResult,DesignID,DesignResult,Angle,AngleResult,Date,DateResult) values (");
     SQL.Append(imageResult.ImageID + ",");
     SQL.Append(imageResult.Centered + ",");
     SQL.Append(imageResult.CenterResult + ",");
     SQL.Append(imageResult.DesignID + ",");
     SQL.Append(imageResult.DesignResult + ",");
     SQL.Append(imageResult.Angle + ",");
     SQL.Append(imageResult.AngleResult + ",");
     SQL.Append(imageResult.Date + ",");
     SQL.AppendLine(imageResult.DateResult + ");");
     return SQL.ToString();
 }