error linq con attach y refresh
Hola que tal a todos, primero agradeciendoles la ayuda prestada!!!!!!lo resolvi de la siguiente manera: publicvoid saveProductsChanges(IQueryable<tProducto> tabla) {using (ConsumoLinqDataContext...
View Articleerror linq con attach y refresh
ya lo intente y aun manda la misma excepcion en la linea del attach :An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContext. This is...
View Articleerror linq con attach y refresh
Si,Es probable que tengas algún elemento de la tabla ligada a productos tenga asociado más de un producto diferente, y en este caso el grafo que construye Entity Framework produzca un error de claves...
View Articleerror linq con attach y refresh
continua con el inconveniente: An attempt has been made to Attach or Add an entity that is not new, perhaps having been loaded from another DataContext. This is not supported. ya lo intente desde...
View Articleerror linq con attach y refresh
Bueno,Aquí lo hacen como tu y parece que les funciona:http://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/33982173-4265-4451-bce1-76efda523a07Aunque quizás deberías probar de...
View Articleerror linq con attach y refresh
Hola que tal agregando la linea que me sugieren que agregue me da la sig:Object tracking is not enabled for the current data context instance.y no se que mas hacer....saludosSi crees que la educacion...
View Articleerror linq con attach y refresh
Hola,Dale un vistazo a este otro thread por si puede serte de utilidad:http://social.msdn.microsoft.com/Forums/en-US/linqtosql/thread/a8e6ca30-e8bd-4a89-aaed-6dddc8f22d27Saludos,JA Reyes.Please...
View Articleerror linq con attach y refresh
Sorry aki esta el codigo ordenado: publicvoid saveProductsChanges(IQueryable<tProducto> tabla) {using (ConsumoLinqDataContext DCActual = new ConsumoLinqDataContext()) {try {foreach (tProducto...
View Articleerror linq con attach y refresh
Hola que tal tengo el sig codigo: public void saveProductsChanges(IQueryable tabla) { using (ConsumoLinqDataContext DCActual = new ConsumoLinqDataContext()) { try { foreach (tProducto item in tabla) {...
View Article