-
My first CSLA application is in user-acceptance phase and includes 15 RDLC reports which use datasets for the datasource. The datasets are populated by a tableadaptors fill methods which call stored procedures. I found the whole procedural to OOPS and CSLA learning curve a little overwhelming at the beginning and opted to use datasets instead of using
-
Howdy, I am using ReadWriteAuthorization1 to reset individual controls on my forms. My understanding is that it will disable individual controls if a user doesn't have access to an individual property that a control is bound to. I would like my form fields to be disabled when the form first loads. They will be empty. Can ReadWriteAuthorization1 be used
-
Thanks Joe. This wizard function required command objects only. For consistency and since I need another wizard function that will use both command objects and regular business objects I should do TP in code instead of the sproc. The code method is much more "black boxed" however. Can I assume that any SQL Errors that occur in the sproc will rollback
-
I use CSLAGen and this is quite simple to do. 1) Add a function like the following: Public Module Helpers ' Get the Username of the current user from the CSLA Identity Object Public Function GetUserName() As String Return Csla.ApplicationContext.User.Identity.Name End Function End Module In the CSLAGen value properties for the business object, just
-
All users of my winform SQL Server app connect to the database via a single SQL Server userid. Each user is assigned an application userid and role based on their Windows logon which is authenticated via LDAP. This has been working real well and management approves because I have locked down the database to sproc access only for the single SQL Server
-
Thanks for the idea re use of a structure Sergey, I would appreciate any advice regarding the use of transaction processing in sprocs vs using <Transactional(TransactionalTypes.TransactionScope)> in my command object. So far I have chosen to use TP in the SQL Server sproc. It works nicely in my TRY/CATCH Block where I can issue a rollback if need
-
Thanks for the advice regarding the use of shared fields and serialization. I had a feeling it was a bad idea. I changed the factory method to accept a parameter passed by reference. Public Shared Function GetBalances(ByRef RetMsg As String) As Boolean Dim cmd As ImportBalanceCmd = New ImportBalanceCmd(WorkflowTypes.GetBalances) cmd = DataPortal.Execute
-
Hi Rocky, Due to time constraints, I will not review WWF. I have managed to learn VB.NET, CSLA, CSLAGen, OOP concepts, Microsoft Enterprise Application Blocks for Exception Handling and Logging in this one project which I feel good about. I found a VB.Net open source Wizard control which provides a UI centric approach for orchestrating the workflow
-
My command object client side code now looks like this: Enum WorkflowTypes GetBalances VerifyBalances ReportBalances LoadBalances End Enum Private mWorkflowType As WorkflowTypes Private mReturnCode As Integer Private mReturnMessage As String Public ReadOnly Property ReturnCode() As Integer Get Return mReturnCode End Get End Property Public ReadOnly
-
Thanks for the help Dawn and Joe, I have been testing out the first process with a Wizard style form which leads the user through each of the 4 processes. Your input comes at a perfect time, I'll carry on implementing the last 3 processes with the single command object. Cheers