namespaceWebMvc4.Models{publicclassZwdbResposistory:IWzbmb{privatereadonlyZwdbDBContext _dbContext;publicZwdbResposistory(ZwdbDBContext dbContext){
_dbContext= dbContext;}publicDataViewGetDataView(string commandString){DataView dv =new();return dv;//_dbContext.kms.FromSql($"select kmdm,kmmc from km where kmdm<'2001';");}publicDataViewGetDV(string commandString){thrownewNotImplementedException();}publicList<Km>GetKms(string cmd){return _dbContext.kms.FromSql($"select kmdm,kmmc from km where kmdm<'2001';").ToList();}publicstringGetWzbmb(ulong wzbm){thrownewNotImplementedException();}publicstringgetKmmc(string kmdm){List<Km> listkm=newList<Km>();
listkm= _dbContext.kms.Where(o=>o.Kmdm==kmdm).ToList();return listkm[0].Kmmc;}}}