unless I missed something the current release looks at only table structures. If possible could this look for additional stored procs and/or functions?
Sorry if I am reopening this but you pointed to someone simply asking how to map a result from a procedure to a poco. That's not what I am asking.
I wanted to know how to make this template generate code to call the procedures in my database. Its doing wonderfully with the tables but does not seem to see the procs... possibly I do not have the correct template. Please clarify if I missed this setting.
Comments: Hi, Firstly you need to make sure you are using the latest template v2.10.0. Go to the top of your .tt file and the version will be shown there. If your using an existing project with an old generator, delete the generators tt files, and re-add the latest generator. Setup the tt file using the same settings you had before. Make sure the ElementsToGenerate includes Elements.StoredProcedures. i.e. ElementsToGenerate = Elements.Poco | Elements.Context | Elements.UnitOfWork | Elements.PocoConfiguration | Elements.StoredProcedures; That's all there is to it.
Sorry if I am reopening this but you pointed to someone simply asking how to map a result from a procedure to a poco. That's not what I am asking.
I wanted to know how to make this template generate code to call the procedures in my database. Its doing wonderfully with the tables but does not seem to see the procs... possibly I do not have the correct template. Please clarify if I missed this setting.
Comments: Hi, Firstly you need to make sure you are using the latest template v2.10.0. Go to the top of your .tt file and the version will be shown there. If your using an existing project with an old generator, delete the generators tt files, and re-add the latest generator. Setup the tt file using the same settings you had before. Make sure the ElementsToGenerate includes Elements.StoredProcedures. i.e. ElementsToGenerate = Elements.Poco | Elements.Context | Elements.UnitOfWork | Elements.PocoConfiguration | Elements.StoredProcedures; That's all there is to it.