1
我不能立即調試,所以我想知道下面的代碼是否有意義。 IEnumerable
不熟悉,但我只是一個學生,我的老闆告訴我要使用它們。讓我感覺實體框架和IEnumerable
感謝您的任何幫助,真的很感激它! (VB.NET)(之前也對象只是爲了保存它的一個副本,所以我可以在我的復原按鈕使用)
'Get from entity framework
Dim IdNow As Integer = PartInfoNow.IdPartInfo
Dim NowPartInfo As IEnumerable(Of PartInfo) = (From a In Db.PartInfo Where a.IdPartInfo = IdNow).ToList
Dim StackUpNow As New ClsStackUp(SqlConnectionString, (New Settings1).ProgramAdmins)
Dim Before As IEnumerable(Of PartInfo) = {NowPartInfo(0)}
非常感謝!這使我在使用它的方式中更有意義! – MattCucco