Regardless of what the DataContext property is set to, the value is ignored
upon generation. Instead, the other areas where the name is used is ignored.
For example, the DBML project will have a DataContextName property set to
whatever was default when the database was selected. You must edit the DBML
project and change the DataContextName property to what the desired name is.
What steps will reproduce the problem?
1. Execute the QuickStart template by double-clicking;
2. Select the database and change the SolutionName, DataContextName, and
DataProjectName. I used:
SourceDatabase: dbEvolution_20101126
SolutionName: Evolution
DataContextName: EvolutionDataContext
DataProjectName: Evolution.data
InterfaceProjectName: Evolution.Web
TestprojectName: Evolution.Test
3. Click "Generate";
4. Once VS2K8 opens, select "Manage Outputs" on the CSP (Evolution.Data.csp);
5. Double-click each of the Outputs.
What is the expected output? What do you see instead?
At this point, if the CSP is generated, all of the resulting objects/files will
have this incorrect name. CodeSmith used the database name to derive a default
DataContextName (like "DbEvolution20101126DataContext"). This name is also the
prefix of all of the other objects. Although it is changed to a shortened
version ("EvolutionDataContext"), the longer default version is populated
within the child projects.
What version of the product are you using?
CodeSmith Generator v5.3.1 (revision 12440) with PLINQO templates from
11/24/2010 (plinqo-r2055.zip)
Please provide any additional information below.
On a side note, it would be great if the DataService could also be renamed via
properties. All of this may be rectified by using a "Prefix" variable that
would prepend all of the other projects and classes instead of directly
referencing the name derived from the database.
Original issue reported on code.google.com by fred.lac...@gmail.com on 29 Nov 2010 at 2:11
Original issue reported on code.google.com by
fred.lac...@gmail.com
on 29 Nov 2010 at 2:11