如何在我的数据模型中实现延迟加载 [英] How to implement lazy loading in my data model

查看:77
本文介绍了如何在我的数据模型中实现延迟加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据模型来操纵数据库中的数据。

但是我想在laq加载模式下运行查询,比如linq to sql。怎么做?



我尝试过:



阅读微软参考,但我不理解它

i have a data model to manipulate data in data base.
but i want to run queries in laze loading mode like linq to sql. how to do that?

What I have tried:

reading microsoft reference but i dont undrstand it

推荐答案

或从另一种材料中学习 -



https://www.c-sharpcorner.com/article/lazy -loading-and-eager-loading-in-linq-to-sql / [ ^ ]

第8部分LINQ to SQL中的延迟加载 - YouTube [ ^ ]

LINQ to SQL:Lazy and Eager Loading Hiccups [ ^ ]

Linq to SQL Deferred Loading - Lazy Load | Guy Burstein的博客 [ ^ ]

使用LINQ to SQL通过示例进行延迟加载 - Obi OberoiObi Oberoi [ ^ ]



我相信最后一个链接可以解决你的问题。





KR
Or learn from another material-

https://www.c-sharpcorner.com/article/lazy-loading-and-eager-loading-in-linq-to-sql/[^]
Part 8 Lazy loading in LINQ to SQL - YouTube[^]
LINQ to SQL: Lazy and Eager Loading Hiccups[^]
Linq to SQL Deferred Loading – Lazy Load | Guy Burstein's Blog[^]
Lazy Loading by Example using LINQ to SQL - Obi OberoiObi Oberoi[^]

I believe that very last link might solve your problem.


KR


这篇关于如何在我的数据模型中实现延迟加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆