Model BEAN  Read Method MVC+ (Model-Facade-View-Controller) Framework for ASP.NET
Reads bean object(s) from database.

Namespace: NovaDimension.Mvc
Assembly: NovaDimension.Mvc (in NovaDimension.Mvc.dll) Version: 4.0.204.0 (4.0.0204.0)
Syntax

public List<BEAN> Read(
	BEAN pBean
)

Parameters

pBean
Type: BEAN
Bean object which holds the criteria of reading operation

Return Value

Type: List BEAN 
List of bean objects

Implements

IModel BEAN, DATAREADER  Read(BEAN)
Exceptions

Examples

This sample shows how to call the Read(BEAN) method.
class TestClass  
{ 
    static int Main()  
    { 
       try
       {
           BeanUser bean = new BeanUser();
           bean.id = 1;

           Model<BeanUser> model = new ModelUser();
           List<BeanUser> list = model.Read(bean);
           model.Release();
       }
       catch (ExceptionEx<ModelException> ex)
       {
           Console.WriteLine(ex.Message);
       }
    } 
}
See Also