Select All Rows Using Entity Framework

前端 未结 8 603
无人共我
无人共我 2021-02-01 00:48

I\'m trying to select all the rows out of a database using entity framework for manipulation before they\'re sent to the form

var ptx = [modelname].[tablename]()         


        
8条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-01 01:29

    I used the entitydatasource and it provide everything I needed for what I wanted to do.

    _repository.[tablename].ToList();

提交回复
热议问题