Domanda

In a project we are using CodeSmith to generate database layer, Codesmith seperate creates service classes for each SQL View and SQL Table, using these service classes we can call StoredProcedures that has prefix "ViewOrTableName".

My problem is that I am unable to directly call any storedprocedure/view or function.

If any body atleast know how to call a function and get response please let me know

Thanks, Imran Rizvi

È stato utile?

Soluzione

I'm assuming that you are using the .netTiers templates. You would need to access the view or stored procedure data (result set) via the component layer (http://www.nettiers.com/ComponentLayer.ashx). You should have methods that are generated for views and stored procedures once you select a view to generate / enable support for custom stored procedures while configuring the generation options (http://www.nettiers.com/Database.ashx).

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top