This question is locked. New answers and comments are not allowed.
I did try to post in the ideas and Feedback portal but somehow that didn't work for me so I post them here instead.
I have a solution using DataAccess ORM and a WCF plain service.
My Presentation Layer is Windows Forms and I use a Grid Control. I have configured WCF to return BindingLists and I set the grids datasource to that binding list.
I change several rows in the grid. I add new rows to the grid and I delete a row in that grid.
--
I have a save button and when I click on that button I call the Update method on the WCF. It seems to only handle modified rows and not added or deleted rows. I would have preferred if it had worked in the same way as ADO.NET works. IE there you have a datatable where some rows have the rowstate modifed, some are added and some are deleted. One call to the DataProvider does the neccessary insert, update and delete statements.
As is now I have to handle inserts and deletes separately. and if the user exits the form without saving I would like to rollback any Changes made since the last save (or when the form was opened).
It would be nice if the dto classes could implement some type of rowstate.
--
I need to implement a Business Logic layer in my app as well.
For example I have two tables with a foreign key constraint between them. If the user tries to delete a row on the parent table and there are rows in the Child table rererencing that parent I want to check with my security system if the user is authorized to delete the Child rows as well and if so delete the Child rows and then the parent row or else throw an exception.
I want certain forms that will work with several tables and when I press the save button in that form several binding lists should be sent down to the business logic layer. There I want to start a transaction. Check data against some rules and then save the data to the database taking into consideration any Foreign Key contstraints.
--
I tried to delete a row in the grid and when I tried to save that to the database it threw an exception because of a foreign key constraint.
That row had Children. I tought that it could be nice if the dto classes could have a property for this. I could then in the Business Logic layer method loop through the Collection and check for this. In the grid Control I could then signal this to the user by changing the background color of the row (meaning this row can't be deleted).
--
When addin a domain model to my Data Access layer I would like to have the option to update a single table if it has changed.
--
In the service wizard I would like to have the following options:
- Only updating the crud methods for a single table
- Selecting several tables of my choosing and create joint crud methods for these tables (IE one BLL method that updates all tables withing one transaction).
- When updating the service for an existing method that already has an Business Logic Layer method the existing code within that method must be preserved.
--
My biggest need for now is to implement a Business Logic Layer and I've looked at the code that was generated by the service wizard to see if I could modify the WCF service to route all calls through a Business Logic Layer and it wasn't that easy to understand.
So my questions are:
Can you implement this into OpenAccess ORM?
If so what timeframe are we talking about?
If not can you send an example on how that code should be modified to implement a Business Logic Layer between the WCF service and the Data Access layer?
I have a solution using DataAccess ORM and a WCF plain service.
My Presentation Layer is Windows Forms and I use a Grid Control. I have configured WCF to return BindingLists and I set the grids datasource to that binding list.
I change several rows in the grid. I add new rows to the grid and I delete a row in that grid.
--
I have a save button and when I click on that button I call the Update method on the WCF. It seems to only handle modified rows and not added or deleted rows. I would have preferred if it had worked in the same way as ADO.NET works. IE there you have a datatable where some rows have the rowstate modifed, some are added and some are deleted. One call to the DataProvider does the neccessary insert, update and delete statements.
As is now I have to handle inserts and deletes separately. and if the user exits the form without saving I would like to rollback any Changes made since the last save (or when the form was opened).
It would be nice if the dto classes could implement some type of rowstate.
--
I need to implement a Business Logic layer in my app as well.
For example I have two tables with a foreign key constraint between them. If the user tries to delete a row on the parent table and there are rows in the Child table rererencing that parent I want to check with my security system if the user is authorized to delete the Child rows as well and if so delete the Child rows and then the parent row or else throw an exception.
I want certain forms that will work with several tables and when I press the save button in that form several binding lists should be sent down to the business logic layer. There I want to start a transaction. Check data against some rules and then save the data to the database taking into consideration any Foreign Key contstraints.
--
I tried to delete a row in the grid and when I tried to save that to the database it threw an exception because of a foreign key constraint.
That row had Children. I tought that it could be nice if the dto classes could have a property for this. I could then in the Business Logic layer method loop through the Collection and check for this. In the grid Control I could then signal this to the user by changing the background color of the row (meaning this row can't be deleted).
--
When addin a domain model to my Data Access layer I would like to have the option to update a single table if it has changed.
--
In the service wizard I would like to have the following options:
- Only updating the crud methods for a single table
- Selecting several tables of my choosing and create joint crud methods for these tables (IE one BLL method that updates all tables withing one transaction).
- When updating the service for an existing method that already has an Business Logic Layer method the existing code within that method must be preserved.
--
My biggest need for now is to implement a Business Logic Layer and I've looked at the code that was generated by the service wizard to see if I could modify the WCF service to route all calls through a Business Logic Layer and it wasn't that easy to understand.
So my questions are:
Can you implement this into OpenAccess ORM?
If so what timeframe are we talking about?
If not can you send an example on how that code should be modified to implement a Business Logic Layer between the WCF service and the Data Access layer?