Questions tagged [mygeneration]

Questions regarding the MyGeneration code generator.

Questions about the Windows code generation application MyGeneration. Open source, available at sourceforge.

MyGeneration supports scripting in vbscript, c#, vb.net for output in several languages.

29 questions
0
votes
1 answer

MyGeneration.dOOdads problem with MySQL connection in ASP.net with stored procedures

I am using MyGeneration.dOOdads which helps in generating Business layer and Data layer easily, but currently I am facing a problem with it. I had worked with MS SQL database and was successful, but now I have to work with MySQL 5. I have the…
NewbieFreak
  • 325
  • 1
  • 4
  • 13
0
votes
1 answer

What rules and conventions should a class follow to be able to work properly with NHibernate?

I am working on a code template to create POCOs from my Db Schema. Is there a kind of summary list that defines the MUST-TO-HAVEs in a class so that it can be mapped to Db with NHibernate without any problem. (As I know, one of the rules is to have…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
1 answer

How can I configure MyGeneration tool to run the code template for each table and create .cs file for each?

How can I configure MyGeneration conde-generator tool to run the code template for each Db table and create a separate .cs for each?
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
2 answers

Where can I find the list of all the interfaces commonly used by MyGeneration?

Where can I find the list of all the interfaces commonly used by MyGeneration? (I am especially asking this to learn walking through all the tables in my DataBase with foreach loop)
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
1 answer

Is it possible to have intellisense support in MyGeneration when it comes to write templates?

Is it possible to have intellisense support in MyGeneration when it comes to write templates? Let's say can I write my templates in Visual Studio and then paste it to MyGeneration template editor somehow?
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
1 answer

How can I achieve this simple output in MyGeneration?

If I have n tables in my Db schema and if I want to walk through all tables in my Db and create a .cs file for each table that will contain the below generated code: public class TableName { private _tableName = "<%TableName%>" //This string will…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
2 answers

Is there a basic template I can use to create POCOs from a Db by MyGeneration?

What is the main code template used in common with MyGeneration when it comes to creating POCOS from a Db schema? Basically I want to have classes without any behavior; just properties (collections properly defined based on the associations in…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
1 answer

MyGeneration command line input

I have looked all over the internet, mygenteration's forum, and mygenteration's website and I cannot figure out how to pass parameters into a template through the command line using the xmldatapath switch. Does anyone know how to do…
wusher
  • 12,291
  • 22
  • 72
  • 95
0
votes
2 answers

What is the most elegant C# .NET Data Access Layer design?

I would like to konw what is considered the most elegant C# .NET method to produce a Data Access Layer? I am using MyGeneration DooDads. Is this an elegant solution? Is it still acceptable to use the CRUD Stored Procedures + DAL Library for…
guazz
  • 21
  • 1
  • 3
0
votes
1 answer

how can i use ORM tool like My Generation?

i downloaded MyGeneration from net. And run. it has got connection string. "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Data Source=localhost " on the other hand; my connection string : Data Source=.\sqlexpress; Initial…
loki
  • 2,926
  • 8
  • 62
  • 115
0
votes
2 answers

Has anyone suffered any performance issues with CodeSmith or MyGeneration

I am new to both these pieces of software. A colleague of mine recommended these two to me. Just wanted to know if the stored procedure code they produce have any performance problems? I would like to use the software to produce stored procedures…
Luke101
  • 63,072
  • 85
  • 231
  • 359
0
votes
1 answer

hbm.xml file how do I build against a template (lujan99@usa.net) to generate class files

I have inherited a project that has not been worked on for a while and I need to make some changes. The original developer is not here any more (deceased)(he also did no documentation) and no one else knows anything about it. The project is using…
Rob
  • 85
  • 8
0
votes
1 answer

MyGeneration or SQL Server performance issue

I am having an interesting problem with mygeneration doodad objects. I am using doodad stored procedures to enter about 25K records reading from a file to my SQL Server database. I need to fill up 5 tables. Every time I ran the C# program calling…
Masud Rahman
  • 1,064
  • 4
  • 14
  • 28
-1
votes
1 answer

Data lost from table on SQL Server

I'm having some strange behavior with one data base on SQL Server 2005, i made an application to store some data, i have only 1 store procedure for custome querys in wich i only have some selects (no delete, or update operations) but for some…
1
2