-
Hi I have a viewmodel set up which is of type object1. Object1 has some properties, one of which is another object(object2) of type BusinessListBase. Currently when I submit my form using defaultModelBinder, object2 always has count = 0. Is the only way to bind the list to use FormCollection as below...
-
CSLA Version 4.1 Hello ! I have two Properties: one called DeliveryWeek (LieferKW) and one called DeliveryDate (Liefertermin). Further i have two Rules which calculate a DeliveryDate (Friday of Week) from DeliveryWeek and one Rule that calculate a DeliveryWeek vom DeliveryDate. The User must can change...
-
In my pre csla 4 code I have [RunLocal] protected override void DataPortal_Create() { _userID = -1; ValidationRules.CheckRules(); //cannot resolve ValidationRule compile error here } What is the syntax when porting to csla 4.0 ? thanks
-
I'm having a problem which is a bit unexpected. Basically, I'm using a command object to get some data from a SQL database. The command object uses registered properties, one of which is a string. The column in the database is nullable, and so LoadProperty is sent a value of null via the property...
-
I need to query an EditableRootList by hierarchical child attributes. An example from Using CSLA would be a Invoice->LineItems->LineItem. I would like to return all Invoices for this month that have an LineItem Amount over $500.00. Should I make a Command or this a Unit of Work? I do not see in...
-
I have a business object set up with properties AAA, BBB, CCC and DDD. I wanted to blank the latter properties if early ones get changed. This means if BBB changes, AAA will be left alone and CCC and DDD will be set to nothing. I have set up a rule so that if AAA changes it sets BBB to Nothing, another...
-
Hi All Is there some way I could hook an event / override to the server side of the data portal to allow me to validate some information about the request? For example I might need to get a custom session property off of the ApplicationContext.User to slide / expire the session. There are some other...
-
I have to add a new module to a complex .Net web application written in C#. It is used in a case management system and the module manages cases that are even more complex than the existing application. One of the weaknesses of the existing system is that the business logic can only be seen in the code...
-
I've create a my first vb.net assembly with CSLA business objects in. I have then created a seperate vb.net assembly with a com class in it that I'm using to join my business objects to vb6. So in my old vb6 program I late bind to the com class and I call the methods on that, without direct referencing...
-
Hi everybody, in a SL4 Project using CSLA 4.1 I have a BusinessBase class containing 2 Methods: public void doWork(EventHandler<DataPortalResult<doWorkCommand>> callback) public static void doWork(int Id, EventHandler<DataPortalResult<doWorkCommand>> callback) I would like to...