Question

I need ideas of how can I substitute the DataPortal model, so I dont use any portals, instead of that I want return object, table or DataSet and to attach any of these to the report on my website.

    public static CustomizeCourseCompletionWithModuleList GetCustomizeCourseCompletionWithModuleList()
    {
        var cmd = new StoredProcedure
        {
            CommandText = "CustomizeCourseCompletionWithModuleSelectById",
            CommandType = System.Data.CommandType.StoredProcedure
        };
        cmd.Parameters.Add("@ID", DBNull.Value);
        return DataPortal.Fetch<CustomizeCourseCompletionWithModuleList>(cmd);
    }
Was it helpful?

Solution

You're fighting the framework, which will not end well. When you're building your application on csla you should return csla business objects, and your ui should never see things such as data tables. Those are data access technologies that your csla objects can use to load themselves but should be an implementation detail not exposed by your business layer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top