次のようなデータを取得するためのストアドプロシージャを作成しました。select * from customer
次に、1つの関数を使用してEntityFrameworkでモデルを作成しましたgetcustomer
。ストアドプロシージャからリストを取得するには、どのコードを記述すればよいですか?
public List<Customer> getCustomerWithsp()
{
Database1Entities1 context = new Database1Entities1();
List<Customer> cust = new List<Customer>();
cust = context.getcustomer().tolist(); //What should I write here?
return cust;
}