Gary Jones
Gary Jones

Reputation: 3197

In .NET is there a tool that creates business objects and database tables from forms?

Let's say you've designed a form in Visual Studio, with a whole series of texboxes, maybe a data-grid and you've named all the controls and specified what data-types are allowed in each.

Is there a tool that will then create all the business objects, database tables and all the code to make that work?

I would have thought there should be a tool do that, because once you have created a form, you essentially have enough information for a database table and all the code-layers in between. (You may have to specify which of the controls represents the primary key and any foreign keys.)

Upvotes: 1

Views: 161

Answers (1)

David
David

Reputation: 73564

What you're describing is extremely close to what you get with Visual Studio Lightswitch.

It's not exactl what yu're describing, but pretty close. In VS Lightswitch, you create the forms and data together As you're creating the forms, you're creating the database and all of the logic necessary to interact with it. (or create forms to attach to existing data)

It's extremely good for quick and dirty apps, but in my experience, it is quite limiting.

The web counterpart is ASP.NET Dynamic Data. That's a lot easier to extend, add to, and modify than are Lightswitch apps. However, with Dynamic Data, it's the reverse of what you're suggesting. You create the database properly and then hook it up with amazingly little effort.

Upvotes: 1

Related Questions