예제 #1
0
        public bool InserDataFile(DataFileUser dataFileUser)
        {
            using (var ctx = _connectionFactory.GetInstance)
            {
                var document   = dataFileUser.DocumentNumber.ToString();
                var createDate = dataFileUser.CreateDate.ToString();

                var command = new SQLiteCommand((SQLiteConnection)ctx);

                command.CommandText = "INSERT INTO tableuser(DocumentNumber, CreateDate) VALUES(@DocumentNumber, @CreateDate)";

                command.Parameters.AddWithValue("@DocumentNumber", document);
                command.Parameters.AddWithValue("@CreateDate", createDate);
                command.Prepare();

                command.ExecuteNonQuery();

                return(command.ExecuteNonQuery() > 0);
            }
        }
 public bool InsertDataFile(DataFileUser dataFileuser)
 {
     return(_dataProcessRepository.InserDataFile(dataFileuser));
 }