質問

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);
    }
役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top