/// <summary>
        /// Insert Values
        /// </summary>
        /// <returns></returns>
        public bool WriteValue(TEST_TABLE table)
        {
            bool RetValue = true;

            int    Id         = table.ID ?? 0;
            string FirstName  = table.Name ?? string.Empty;
            string secondName = table.MidleName ?? string.Empty;
            string LastName   = table.LastName ?? string.Empty;

            try
            {
                Database.Open();
                if (Database.State == System.Data.ConnectionState.Open)
                {
                    SqlCommand Cmd = new SqlCommand();
                    Cmd.CommandText = "Insert Into table";
                }
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message);
            }

            return(RetValue);
        }
示例#2
0
 public DataClass()
 {
     Table = new TEST_TABLE();
 }