Domanda

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);
    }
È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top