CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • Using SaveObject() in Mvc controller

      Hi, I am working on a Mvc4-project and I am wondering why I rather should use the method SaveObject() instead of myObject = myObject.Save() when inserting or updating the db? The beginning of my code in my controller looks like the following: public class HomeController : Csla.Web.Mvc. Controller , IModelCreator...
      Posted to CSLA .NET discussion by Peter Centellini on Thu, Jan 8 2015
    • Re: Refresher on full trust

      That depends entirely on you. If you use the MobileFormatter (instead of BinaryFormatter or NDCS) for serialization then full trust should not be required. The problem has always been with those two Microsoft serializers, because they are built in a way that requires full trust. The MobileFormatter is...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Jun 20 2014
    • Refresher on full trust

      Does CSLA 4.5 still require full trust on server for ASP.NET MVC 4 internet applications?
      Posted to CSLA .NET discussion by cjherasmus on Fri, Jun 20 2014
    • Multiple DataPortals - Could I and Should I?

      I have an ASP.NET MVC application that I am currently working on. The application should scale to be able to support web farms. In addition to plain old database access, users will have the ability to upload files. Of course this means the files will need to be uploaded to a single server location on...
      Posted to CSLA .NET discussion by NightOwl888 on Sun, Nov 17 2013
    • Re: IClientValidatable & MVC

      Unless I'm missing something, it looks like this interface basically duplicate the data annotations attributes. Why not just put those on your model(csla supports them), and use cslamodelbinder as shown in the 'Using CSLA 4'
      Posted to CSLA .NET discussion by RockfordLhotka on Sun, Jul 14 2013
    • MVC4 Binding an object which has a property of type BusinessListBase

      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...
      Posted to CSLA .NET discussion by dsburny on Fri, Jun 7 2013
    • Re: Best way to handle "session" specific user data in a CSLA MVC app?

      I discuss various alternatives in the 'Expert 2008 Business Objects' book and in the 'Using CSLA 4' ebook series. Because the web server doesn't remember anything between requests, you have to recreate or re-obtain the principal/identity at the start of each page request. In and of...
      Posted to CSLA .NET discussion by RockfordLhotka on Sat, Apr 6 2013
    • CSLA.NET object stored in ASP.NET session

      I've inherited an ASP.NET MVC project that uses CSLA. Its storing a couple CSLA objects in session, I think this may be part of the problems its running into with hanging\thread locking, but I'm not sure how to explain and convince people that, this is the case so we can make the investment in...
      Posted to CSLA .NET discussion by zbend on Fri, Mar 29 2013
    • CSLA 4.5 and "Using CSLA 4" eBooks

      Hi, I have been using CSLA 3 for quite a while (started off with c# 2005 Business Objects) and it is now time for me to move on with the times and dive into the new CSLA 4.5. It looks like the current eBooks are for CSLA 4.0. My question is will the "Using CSLA 4 eBooks" be enough to get me...
      Posted to CSLA .NET discussion by Mar72Vin on Thu, Jan 17 2013
    • Custom validation attribute to be used in CSLA objects

      I know how to create custom validation attributes and I know how to make ASP.MVC client validation work with those attributes if I implement IClientValidatable interface, but then I would need to reference System.Web.MVC in the library containing my CSLA objects. Is it possible to create a custom validation...
      Posted to CSLA .NET discussion by correodemarques on Fri, Jan 11 2013
    • Csla.ApplicationContext.User not holding my Custom Principal object

      I am developing a POC for a customer using the following technologies. CSLA.NET 4.5 .NET Framework 4.5 ASP.NET MVC 4 I have been running into some issues with the Csla.ApplicationContext.User not holding my Custom principal object. When a user has logged in, it reverts back to the regular principal object...
      Posted to CSLA .NET discussion by TommyB on Thu, Jan 3 2013
    • Re: Support for MVC 4

      http://www.lhotka.net/cslanet/faq/AspMvcFaq.ashx It is possible that 4.3 is built against MVC 4, I don't remember off the top of my head and I am on holiday for US Thanksgiving. Worst case is that you'd need to build the Csla.Web.Mvc against MVC 4.
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Nov 20 2012
    • Re: Csla.ApplicationContext.GlobalContext Losing Value in MVC

      Two things. First, make sure you have Csla.Web.dll in your bin directory, or ApplicationContext won't work right. Second, remember that web servers are designed to be stateless between client requests. The Csla.ApplicationContext values are state, so of course that state is lost between client requests...
      Posted to CSLA .NET discussion by RockfordLhotka on Sun, Oct 7 2012
    • Using private property setters with the MVC CSLA Model Binder

      Hi all, I've read through Rocky's "Using CSLA 4 with ASP.NET MVC" ebook and have implemented the methodologies suggested by him, including the use of the CSLA Model Binder, but this has lead me to an interesting problem... Some class properties within my business layer have private...
      Posted to CSLA .NET discussion by nickh on Tue, Sep 11 2012
    • CSLA unit testing MVC no DAL

      I'm new to CSLA, and also unit testing in general, yet I'm newly assigned to a project that uses CSLA and they want to now write unit tests for it, and I'm lost. The project is a ASP.NET MVC 3 (c#) application, with a csla library that has umm inline? dataportal methods. The actual data fetching...
      Posted to CSLA .NET discussion by zbend on Tue, Aug 28 2012
    • ASP.NET MVC Model Binder and postback BusinessListBase

      Is there a problem with populating a model that contains a list? How to reproduce: In the ProjectTracker(4.3.10) sample I have added the rule: BusinessRules.AddRule(new Csla.Rules.CommonRules.MaxLength(DescriptionProperty, 3)); to the ProjectEdit class. When you edit a project you have "Project...
      Posted to CSLA .NET discussion by wilfreds on Fri, Apr 27 2012
    • The type initializer for 'ProjectTracker.DalMock.MockDb' threw an exception.

      trying to use MockDb. here is the code: public List < ProjectDto > Fetch() { var result = from r in ProjectTracker.DalMock. MockDb .Projects select new ProjectDto { Id = r.Id, Name = r.Name, Description = r.Description, ParentID = r.ParentID, Alias = r.Alias, CapitalizationStage = r.CapitalizationStage...
      Posted to CSLA .NET discussion by gbetz on Wed, Apr 4 2012
    • IsInRole(AuthorizationActions, params string[] roles) in CSLA 4.2

      Hi, I'm using CSLA 4.2 and the above subject is not working on my PC when i put something on the roles part. Did i miss something? Below are sample code snippets: protected static void AddObjectAuthorizationRules() { Csla.Rules.BusinessRules.AddRule(typeof(SomeClass), new Csla.Rules.CommonRules.IsInRole...
      Posted to CSLA .NET discussion by maxdrive on Mon, Feb 27 2012
    • Re: MVC3 Update Children

      I assume you've read the Using CSLA 4: ASP.NET ebook? When doing an update of an existing object you need to decide whether to get the object from Session, reload it from the database, or create an empty object. You or the CslaModelBinder then loads the properties with values from the postback. If...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Feb 10 2012
    • Required help in developing scheduler using CSLA

      Hi, We required to develop a scheduler for payment transactions. This scheduler should take care of executing scheduled payment transactions at a given time on each day. I'm developing the Application using ASP.NET 4, MVC 3 and using CSLA 4 framework (4.2.0). Because of shared hosting we are unable...
      Posted to CSLA .NET discussion by SreeRamaSaran Mullapudi on Wed, Jan 4 2012
    Page 1 of 3 (60 items) 1 2 3 Next >

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems