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.
    • Are we forced by CSLA to use DbContext in EF6?

      I'm hoping someone can correct my ignorance here. I have upgraded my solution from EF5 to EF6. I am using ObjectContextManager in my data layer, database-first with an edmx model. To upgrade to EF6 I followed the guide on MSDN: http://msdn.microsoft.com/en-us/data/upgradeef6.aspx So now, in my model...
      Posted to CSLA .NET discussion by kreid on Tue, Jan 13 2015
    • Need recommendations to start using CSLA 4.5.501

      Hello: I was using CSLA 3.6 now I want to start a new project using CSLA 4.5.501. Can anybody give a link with first steps? My first dilemma is I don't which DLL files I must use: -those which are in Marimer LLC\CSLA .NET\4.5.501\Bin\NET4 -those which are in Marimer LLC\CSLA .NET\4.5.501\Bin\NET...
      Posted to CSLA .NET discussion by Lazaro Santin on Sat, Jul 12 2014
    • Having issue with EF and CSLA under constant high load

      Hi All, I am facing a very peculiar problem with EF. We are having an ERP for educational institutes. The application is written using CSLA 3.5, Silverlight 5,WCF and EF 4 with .NET 4.0. And we are using SQL Server 2008. During high usage (say 30 users working at once) the application starts behaving...
      Posted to CSLA .NET discussion by Tiklu Ganguly on Wed, Oct 2 2013
    • Re: Should I use EF with CSLA?

      I often use EF to create my DAL behind CSLA objects. I use model first, because I am using EF to make it easier to create the DAL and I don't really want or need specialized entity types. The reason for using EF like this is that it is often simpler than hand-crafting raw ADO.NET code. On the other...
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Jun 10 2013
    • Should I use EF with CSLA?

      It seems like EF is all the rage these days. I'm just starting to play with it myself. After getting bitten by that LINQ-to-SQL disaster I wanted to wait to see if this technology was going to make it. Anyway, EF seems to make it fairly easy to model your business classes. Does this technology replace...
      Posted to CSLA .NET discussion by JonM on Thu, Jun 6 2013
    • Share connection with ConnectionManager and DbContext

      Hi I have a lot of DAL code using the ConnectionManager, e.g. public void Insert(int accountID) { using (var ctx = ConnectionManager<SqlConnection>.GetManager(Database)) { using (var command = ctx.Connection.CreateCommand()) { command.CommandText = "INSERT etc"; command.Parameters.AddWithValue...
      Posted to CSLA .NET discussion by j0552 on Thu, Apr 11 2013
    • Code Generation for business objects

      Hi, there. I want to generate csla business classes based on a) my database b) on my entity frameworkmodel. a) base: database/ technology: Raw Ado DotNet = Codesmith code generator Codesmith's code generator looks ok. What you do think about this generator? Is there a better one? b) base: Entity...
      Posted to CSLA .NET discussion by Org on Fri, Nov 9 2012
    • CSLA+EF1.0: error "Cannot insert duplicate key ... with unique index ... " on delete+insert records

      Hi all I'm having this problem, and after search on google, found it quite common: - first, delete a row from a table, or update a specific field (related to unique index) - then, add new row with same value example: delete order row item #2 (fieldXYZ=2),then add new row item with same value (fieldXYZ...
      Posted to CSLA .NET discussion by roberto on Fri, Apr 13 2012
    • Map complex CSLA BO to Entity Framework with eager loading

      Hi, MyObjectFactory calls a EntityFramework (EF) DAL and load a Entity with several childs. The ObjectFactory maps the result to a CSLA BusinessObject. The child entities are already loaded with a .Include(...) in the same EF query and there is no need to call the database again. How should no map the...
      Posted to CSLA .NET discussion by Bernhard on Mon, Oct 10 2011
    • Casting EF class collection to string array

      I have a data transfer object defined as: public class UserDto { public string UserId { get; set; } public string[] Roles { get; set; } } My database has the following tables: User : UserId, UserName, Password Role : RoleId, RoleName UserRole : (many to many) contains UserId, RoleId. In my code I want...
      Posted to CSLA .NET discussion by Helio on Fri, Oct 7 2011
    • Re: DbContextManager

      Thanks for the information. I'll add this to the wish list, because yes, there should be a DbContextManager type in Csla.Data. We'll have to think about when to add it, because it will couple CSLA to EF 4.1, at least to some degree.
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Sep 5 2011
    • Re: Is there any general advice on using CSLA with some ORM tool?

      For my part, I view all ORM tools as purely a data access technology or concept. Therefore, their use should be restricted to the Data Access layer, and none of their artifacts should contaminate the Business layer, much less the Interface Control or Interface layers. I use EF quite a lot, and it creates...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Jun 21 2011
    • Child_Fetch of object fetched from multiple entities

      I have a object that is populated from multiple EF entities: RiderInfo Id from Rider entity. Name from Rider (FirstName LastName). NationalityName from Nationality entity. I have the Fetch method: private void DataPortal_Fetch(int criteria) { var rider = Rider.GetRider(criteria); Id = rider.Id; Name...
      Posted to CSLA .NET discussion by KevinManx on Thu, Apr 28 2011
    • Can the Entity Framework replace CSLA?

      I just watched this great little video series on creating a WPF and Silverlight MVVM application. In the sample, he started with an Entity Framework model and wrapped it in a WCF layer. The WCF layer detached the entity object and returned it to the client. The client then called a Save method in the...
      Posted to CSLA .NET discussion by frankhoffy on Fri, Feb 25 2011
    • Re: Prism example utilizing Csla

      Hey Rocky, Johnny Bee I did check CslaContrib and did find some MEF extensions to the Csla classes and that may help with my decision to use MEF or Unity. Have to check them over in more detail and get my head around MEF a little more but that should help a lot. Thanks folks, Keith
      Posted to CSLA .NET discussion by CyclingFoodmanPA on Sun, Feb 13 2011
    • Prism using Unity or MEF and EF Question

      First off, there are too many options! I am in the process of re-architecting a large application and am torn between using Unity in Prism or MEF in Prism. I know MEF comes with the .NET 4.0 Framework but I am trying to figure out which way to go. I see lots of pros and cons for each and have worked...
      Posted to CSLA .NET discussion by CyclingFoodmanPA on Sat, Feb 12 2011
    • EF Detached objects and CSLA

      I noticed that, when working with EF, people are handling the detached objects from the EF context in 3 ways (may be more, I just seen these) - Re-query the db for the object before Updates - Re-Construct only the EntityKey with the info at hand - Only carry the EntityKey in the CSLA object on a binary...
      Posted to CSLA .NET discussion by Andres Bastidas on Fri, Dec 10 2010
    • CSLA and ADO Entity Framework

      i was considering using ADO EF as the data layer for a new project i am working on and have found it to be extremely tedious and far less functional than simply using linq to sql... first problem is that output parameters from stored procedures have to be mapped as a result binding on the datatable object...
      Posted to CSLA .NET discussion by loch006 on Wed, Nov 10 2010
    • Re: Is Using CSLA with Entity Framework a good solution ?

      Yes, you can use EF as a data layer behind CSLA objects, and this is increasingly common. There are samples as part of the Core 3.8 video series that demonstrate how to do this. ProjectTracker is not current, and I am not 100% sure that is the sample I'll use for my current book project. However...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Oct 14 2010
    • Re: Can I treat CSLA BusinessBase class as EF4 Code First classes

      That's great!
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Oct 8 2010
    Page 1 of 1 (20 items)

    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