public override global::System.Data.DataTable Clone()
            {
                FileDataTable cln = ((FileDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
 private void InitClass()
 {
     this.DataSetName             = "AppDataSet";
     this.Prefix                  = "";
     this.Namespace               = "http://tempuri.org/AppDataSet.xsd";
     this.EnforceConstraints      = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableFile               = new FileDataTable();
     base.Tables.Add(this.tableFile);
 }
 internal void InitVars(bool initTable)
 {
     this.tableFile = ((FileDataTable)(base.Tables["File"]));
     if ((initTable == true))
     {
         if ((this.tableFile != null))
         {
             this.tableFile.InitVars();
         }
     }
 }
Beispiel #4
0
        private int AddFileDataRow(string fileName, string filePath, string fileType)
        {
            var fileDataRow = FileDataTable.NewRow();

            fileDataRow["FileName"] = fileName;
            fileDataRow["FilePath"] = filePath;
            fileDataRow["FileType"] = fileType;

            FileDataTable.Rows.Add(fileDataRow);

            return(fileDataRow["ID"].ConvertToInt32());
        }
 internal FileRow(global::System.Data.DataRowBuilder rb) :
     base(rb)
 {
     this.tableFile = ((FileDataTable)(this.Table));
 }