This project has moved and is read-only. For the latest updates, please go here.

The name 'data' does not exist in the current context

Jun 18, 2013 at 9:58 AM
Edited Jun 18, 2013 at 10:43 AM
I have downloaded the 4.3 RC from the web site with the template and codesmith. I also downloaded CSLA4.3.12. This is the first time doing this on this PC and I located the templates and codesmith correctly. The csla classes are generated from the database table correctly. But when I add them to the project and compile i get the "The name 'data' does not exist in the current context" error. And I see some undefined variable on the LoadProperty method(see code below). It used to be
dr.GetInt32("TableColumn1") in older versions of the cslagenfork.
private void Fetch(SafeDataReader dr)
{ ...
LoadProperty(tableColumn1Property, data.tableColumn1);
I changed several options on the project but none changed the result. I removed everything and reinstalled them again but nothing changed. Probably I am missing something but cant find. Please help. Can somebody confirm this is not related to latest templates I downloaded.
Jun 18, 2013 at 12:26 PM
See my reply to the Safedatadeader thread from a few days ago.