保存前缓存数据. [英] Caching data before saving.
问题描述
大家好,
的愿望.我想问一下,在将数据保存到数据库服务器(asp.net,C#)之前是否有任何将数据缓存到系统的方法.我知道可以通过使用LINQ来执行某种操作,即,我们可以创建一个List<表模式的类型,继续添加记录,以后我们可以使用tableobject.InsertAllOnSubmit(),但是由于我的应用程序是动态添加表的,所以我不能这样做,因为我不认为可以添加任何方法在运行时将表架构迁移到LINQ to SQL中的DBML.我不需要任何直接代码,我只想知道可以执行任何此类操作,如果可以,任何人都可以向我提供一些有用的提示或链接.
谢谢与问候
Anurag
Hello everyone,
Wishes of the day. I wanted to ask that Is there any way of caching the data to the system before saving it to a database server (asp.net,C#). I know that some sort of this can be performed by using LINQ, i.e, we can create a List<> type of the table schema, keep on adding the records to it and later on we can use tableobject.InsertAllOnSubmit(), but since, my application is adding tables dynamically, so I cant do that as I dont think there is any way of adding tables schemas at runtime to DBML in LINQ to SQL. I dont want any direct codes, I just want to know that can any such sort of thing be performed, and If yes, can anyone provide me with some useful hint or link.
Thanks and Regards
Anurag
推荐答案
代替使用DBML ..您可以像在数据库中一样尝试使用模式创建数据集....您知道db如何创建模式与数据集有关的东西.
Instead of using DBML .. you can try to create dataset with schema as you doing in database .... you knew that how db can create schema do some thing with dataset..
这篇关于保存前缓存数据.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!