Inquiridor
Error arquivo do banco local

Discussão Geral
-
Pessoal estou com erros não corrigidos no meu arquivo "NOMEBANCO"DataSet.Designer.cs
NÃO SEI O MOTIVO POIS AO ABRIR O PROJETO o banco não estava junto com o projeto, fui em propriedades e add arquivo existente
...
Dai veio esse erro
Error 81 'conectasistockDataSet' does not contain a definition for 'table' and no extension method 'table' accepting a first argument of type 'conectasistockDataSet' could be found (are you missing a using directive or an assembly reference?) C:\Users\Tatyanne\Desktop\Projects\conectasistockDataSet1.Designer.cs 339 18
Error 47 Ambiguity between 'conectasistockDataSet._schemaSerializationMode' and 'conectasistockDataSet._schemaSerializationMode' C:\Users\Tatyanne\Desktop\SISTOCK\Projects\conectasistockDataSet1.Designer.cs 194 29
// erros com esse simbolo [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global:://System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars() { // this.InitVars(true); } [global:://System.Diagnostics.DebuggerNonUserCodeAttribute()] [global:://System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] internal void InitVars(bool initTable) { //this.tablecategoria = ((categoriaDataTable)(base.Tables["categoria"])); //if ((initTable == true)) { // if ((this.tablecategoria != null)) { // this.tablecategoria.InitVars(); } } //this.tabledescarte = ((descarteDataTable)(base.Tables["descarte"])); //if ((initTable == true)) { // if ((this.tabledescarte != null)) { // this.tabledescarte.InitVars(); } } //this.tableestoque = ((estoqueDataTable)(base.Tables["estoque"])); // if ((initTable == true)) { // if ((this.tableestoque != null)) { // this.tableestoque.InitVars(); } } //this.tablefornecedor = ((fornecedorDataTable)(base.Tables["fornecedor"])); // if ((initTable == true)) { // if ((this.tablefornecedor != null)) { // this.tablefornecedor.InitVars(); } } // this.tableoperador = ((operadorDataTable)(base.Tables["operador"])); // if ((initTable == true)) { // if ((this.tableoperador != null)) { // this.tableoperador.InitVars(); } } // this.table = ((produtosDataTable)(base.Tables["produtos"])); // if ((initTable == true)) { // if ((this.tableprodutos != null)) { // this.tableprodutos.InitVars(); } } // this.tableusuario = ((usuarioDataTable)(base.Tables["usuario"])); // if ((initTable == true)) { // if ((this.tableusuario != null)) { // this.tableusuario.InitVars(); } } //this.relationFK_descarte_estoque = this.Relations["FK_descarte_estoque"]; //this.relationFK_descarte_produtos = this.Relations["FK_descarte_produtos"]; // this.relationFK_operador_usuario = this.Relations["FK_operador_usuario"]; // this.relationFK_produtos_categoria = this.Relations["FK_produtos_categoria"]; // this.relationFK_produtos_fornecedor = this.Relations["FK_produtos_fornecedor"]; } [global:://System.Diagnostics.DebuggerNonUserCodeAttribute()] [global:://System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")] // private void InitClass() { // this.DataSetName = "conectasistockDataSet"; // this.Prefix = ""; // this.Namespace = "http://tempuri.org/conectasistockDataSet.xsd"; // this.EnforceConstraints = true; // this.SchemaSerializationMode = global:://System.Data.SchemaSerializationMode.IncludeSchema; // this.tablecategoria = new categoriaDataTable(); // base.Tables.Add(this.tablecategoria); // this.tabledescarte = new descarteDataTable(); // base.Tables.Add(this.tabledescarte); // this.tableestoque = new estoqueDataTable(); // base.Tables.Add(this.tableestoque); // this.tablefornecedor = new fornecedorDataTable(); // base.Tables.Add(this.tablefornecedor); // this.tableoperador = new operadorDataTable(); // base.Tables.Add(this.tableoperador); // this.tableprodutos = new produtosDataTable(); // base.Tables.Add(this.tableprodutos); // this.tableusuario = new usuarioDataTable(); // base.Tables.Add(this.tableusuario); // this.relationFK_descarte_estoque = new global:://System.Data.DataRelation("FK_descarte_estoque", new global::System.Data.DataColumn[] { // this.tableestoque.Id_esColumn}, new global:://System.Data.DataColumn[] { // this.tabledescarte.Id_esColumn}, false); //this.Relations.Add(this.relationFK_descarte_estoque); // this.relationFK_descarte_produtos = new global:://System.Data.DataRelation("FK_descarte_produtos", new global::System.Data.DataColumn[] { // this.tableprodutos.Id_prodColumn}, new global:://System.Data.DataColumn[] { // //this.tabledescarte.Id_prodColumn}, false); //this.Relations.Add(this.relationFK_descarte_produtos); // this.relationFK_operador_usuario = new global:://System.Data.DataRelation("FK_operador_usuario", new global:://System.Data.DataColumn[] { //this.tableusuario.Id_usuarioColumn}, new global::// System.Data.DataColumn[] { //this.tableoperador.Id_usuarioColumn}, false);
Técnico em Manutenção de MicroInformática
- Tipo Alterado Marcos SJ quarta-feira, 24 de fevereiro de 2016 20:48
Todas as Respostas
-
Galera o erro gerado acima era a duplicação do arquivo DataSet, então ele da como arquivo não encontrado
então procuro no SOLUTION EXPLORER no VISUAL STUDIO 2013 e delete o arquivo duplicado, logo reedite o arquivo original pois quando chegar a esse erro vc já terá
Dica
" editado algumas tabelas no banco e o arquivo não conseguiu visualizar"
Analista de Suporte
- Editado Cleynaldo Carvalho terça-feira, 19 de maio de 2015 22:24