codesmithtools / Templates

CodeSmith Generator Templates
http://www.codesmithtools.com/product/generator
54 stars 35 forks source link

Error after generating the Output from the CSP file. #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3. I just follow all the readme steps to configure the NHibernate
enviroment in Visual Studio 2008 using MySQL.

What is the expected output? What do you see instead?
I configured my project according to the steps written in the readme file
(NHibernate Template), and when i Generate the Output from the codesmith
project file, i get a succeded compilation, but when i build the project i
get the following error:

*-----------------------------------------
Error   14  Class 'Categorium' must either be declared 'MustInherit' or
override the following inherited 'MustOverride' member(s): 
    performanceReviewer.DAL.Base.BusinessBase(Of UInteger) : Public
Overrides MustOverride Overloads Function GetHashCode() As Integer.
E:\Sistemas\performanceReviewer.DAL\performanceReviewer.DAL\BusinessObjects\Cate
gorium.vb
10  23  performanceReviewer.DAL
*-----------------------------------------

i get the same error for every file contained in the autogenerated folder
"BussinessObjects". This is an example of the code generated for one of
this files, all of them have the same code but with a different class name
of course.

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text

Imports NHibernate
Imports performanceReviewer.DAL.Base

Namespace performanceReviewer.DAL.BusinessObjects
    Public Partial Class Categorium  <-- Error Here
        Inherits BusinessBase(Of System.UInt32)
    End Class
End Namespace

What version of the product are you using?
Visual Studio 2008
MySQL 5.1
MySQL Connector/NET 5.2
CodeSmith 5.0.1

Please provide any additional information below.

Original issue reported on code.google.com by rogelio....@gmail.com on 20 Mar 2009 at 12:21

GoogleCodeExporter commented 9 years ago
Sorry, problem solved, I just needed to update the codesmith templates.

Original comment by rogelio....@gmail.com on 21 Mar 2009 at 5:23

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 23 Mar 2009 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 7 Oct 2009 at 4:06