Visual Database Design Delphi VCL components? - database

I'm looking for a Delphi VCL component that allows my customers to visually create a database, that is, tables, fields, indexes, etc. Something like this: http://www.devart.com/blogs/dbforge/?p=136#more-136, but available as a third-party component to be embedded into an application. Do you know of something like this? I'm not looking for visual query builders, but database design components.

You could start by looking into ESS Model source code: ess model is a free & open source UML desing and UML reversing tool wich export model data to XMI-format. Once your model generated, you could take it on from there and generate your SQL scripts.
Download : http://essmodel.cvs.sourceforge.net/viewvc/essmodel/essmodel/
Source Code : http://essmodel.cvs.sourceforge.net/viewvc/essmodel/essmodel/

http://www.tmssoftware.com/site/diagram.asp

Not sure, but the TDatabaseSchema component in Context Software's Database Extensions component set may be close to what you're looking for:
Context Database Extensions
Or maybe you would want/need to combine it with their end-user "Database Designer" product, which can be registered as the component editor for TDatabaseSchema. ( Database Designer ) The author would be happy to clarify if you asked, I'm sure.

Related

Where do report classes go in a layered design using Entity Framework and Visual Studio 2015

I am using Visual Studio 2015 with Entity Framework 6 and .NET 4.5.2 for a WinForms application. I am currently working on adding reports to my project. I thought about adding the classes which return DTO collections intended for reports to my DataServices section. I decided not to because all classes in my DataServices section currently use my DAL to provide CRUD operations through repositories. My classes for reports will only return read only DTO collections. Since my report DTO classes will not use the typical repository methods (i.e. Add, Update, Delete...) I decided to create a new folder in my project called ReportServices. I have therefore placed my report class named RequestReports (this is for my Request model entity and will return a RequestDetailDto collection) in that folder. Below is a picture of how I have things setup now:
I am not sure if the way I have it setup is the right thing to do. One other way might be to just scrap the idea of a reporting section and mix the reporting classes in with the other data services which use repositories. If I do this, then I would simply not implement the repository methods of add, update, delete for the report classes. I would only implement the get operations for the reporting classes of FindByID and FindAll. Is this really the way to go?
So my question is, "Where should the classes which retrieve information for reporting purposes be placed in a Visual Studio project of a layered design?"
Thanks in advance.
I recommend creating a separate project altogether for reporting. Keep the reporting model and data access separated from your main domain, don't use the same Repositories. Different purposes means different efficient ways of fetching data. It will also pave the way for the option of storing reporting data in a distinct database.
You might want to check out the CQRS approach, it brings a lot to the table on these issues.

visual studio 2010 autogenerated DataSet

When I connect to a database via VS tools it offers to automatically generate the DataSet code for my DB. I didn't work with databases in VS before that way, so can anyone tell, is that autogenerated code is applicable for a serious project, that will need to be maintained later? Or it's good only in simple and common cases and it's better to write my own classes for database interaction?
I would recomand to use ORMs like Entity Framework or Nhibernate
ORMs allow you to abstract from Data base you will work with POCO objects. that will help you in maintain and in design your project.

Oracle ADF components experience

I just saw nice little demo about Oracle ADF Rich components: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/adffaces/adffaces.html.
Looks really cool, nice and easy but of course its just a demo :). I would like to ask if someone actually uses it for a production app, how they compare to popular open source alternatives like RichFaces or IceFaces etc.
How about a deployment to a different server than weblogic?
We use ADF Faces. It is quite good. They have all the basic components(input text, output text, input file, date pickers, tables, etc) and some advanced components(graphs, tree,tree tables, etc). The layout components are also good and will suffice for most use cases.
But as with any JSF component, ADF Faces Components are hard to modify. For instance, if you want to add, say, a placeholder text, on an input text then you need to resort to fragile hacks.
I would recommend ADF Faces for enterprise apps where the ability to alter and fine tune UI components is not as important as fast and low cost development.
Also, ADF Faces isn't just a component framework. It is a full ViewController framework. Check out their Task Flows and you will be amazed.
We also use ADF Framework for our current product where we migrate our existing form based product to the new framework.
The major benefit that I'd like to point out in ADF is the way they promote declarative programming. I have to admit being a strong java developer, I have the tendency to go and add my own programmatic handling, but for someone who is used to forms, they will find it easy to learn the basics.
A strong feature that I also like to point is the way they clearly defined the MVC architecture. Model = BC, Controller = TaskFlow, View = well this one is obvious. Kudos to ADF the way they designed the taskflows as you get to have a visual representation or better put, a story of your design as well as your logic.
I am not sure about using a different server as ADF along with JDeveloper gives quite a load of features which allows you to configure directly to your server and be able to test on your intergrated server as well, with this I mean more on the security side as well as authentication piece of it. So even if you are able to migrate all the libraries needed, you might still be missing out in some of the other technologies that can be easily integrated with a weblogic server. (such as webcenter, soa etc.)

linq to sql , model first development?

Is is it possible to use l2s in model first approach?
Here's the think i want to achieve:
I want to write my app in TDD manner, so I want to write some domain specific objects first and then base on that generate database model.
One solution is to l2s as DAL but and map linq generated entities to my custom domain objects(I Rob C. in Storefront app did), but i would like to use l2s objects directly
Other solution is to use T4 Toolbox: LINQ to SQL schema generator but it is based on visual team system IDE, which I don't have access to
Last solution i found is to use Close2Poco
Have you tried any of this solutions ?
Is it easy to achieve with l2s?
P.S.
Sorry for my english
Not with the current version. Visual Studio 2010 will support this. There's currently a preview release available from Microsoft here:
http://msdn.microsoft.com/en-us/vstudio/dd582936.aspx

Anyone know of a simple WPF/Silverlight data access framework?

Does anyone know of a simple WPF or Silverlight framework which enables you to e.g. define some database tables in e.g. SQL Server compact database and then the framework automatically creates the Window classes etc. which allows a user to login and edit that data?
I'm not looking for a complicated MVVM pattern example, it can be hard coded, it should just save the developer the time of creating all the CRUD code and forms and authorization necessary for users to edit the data. The developer could define 10 database tables, run the code generation, and then be pretty much 80% finished with any simple database application he wanted to make.
All of that would be generic code so I would think some framework like this would exist or someone would be working on some open source project like this already.
Does anyone know of a framework or tool like this?
It's not Silverlight, but ASP.NET Dynamic Data sounds like it would do what you're asking. It provides a web-based front end for editing database tables.
I've used it for a small project and you can literally have it up and running with CRUD functionality within an hour.
maybe you should take a look at the Sculpture project. There might be something you are looking for.
Since you cannot have direct connection to a database server with Silverlight, you should look at a .NET data access framework using the regular .NET Framework thru a Web Service.

Resources