Beispiel #1
0
        private OleDbParameter CreateDateTimeOleDbParameter(string parameterName, DateTime dt)
        {
            OleDbParameter p = new OleDbParameter(parameterName, OleDbType.DBTimeStamp);

            p.Direction = ParameterDirection.Input;
            p.Value     = AccessConnectionHelper.RoundToSeconds(dt);
            return(p);
        }