473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Anyone interested ?

wl
Hi,

I'm currently finishing a project that might come in handy for someone else
as well:

I have created 3 classes:
- PersistenceItem: allows for an automatic mapping between properties or
members and fields in a database. I can automatically detected whether any
one the "persisted" members have changed and thus the database record should
be updated, or inserted or deleted. It can work with any OleDb compliant
database.
- PersistenceCollection: a collection of PersistenceItems. The collection
can be build with a a specific filter, items are created automatically (of
the correct type), it keeps tracks of all changes in the collection (and
allows for "batch operations"). It also provides temporary PK values (in
case the PK is numeric) which are converted in "real" PK's when written to
the database etc. The PersistenceCollection can be used as the source of a
DataGrid or any other databinding mechanism.
- PersistenceReader: A sort of PersistenceCollection "lite": it returns a
OleDbDataReader with records matching a filter: but the individual records
are not being created automatically (thus saving memory). An PersistenItem
instance can be created easily with one method call as requested. You can
also use two different PeristenceItem descendant classes: one for the
collection (eg: Datagrid) with limited number of "columns" and an extended
with all members needed (detail screen for example).

It uses reflection to do the database access behind the screens.

I'm currently beta testing it myself and would like to know whether anyone
would be interested. If so: please send a mail to:
wx***********@hotmailx.comx (remove all x'ses).

Nov 18 '05 #1
0 919

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Peter Hansen | last post by:
The term "mock filesystem" refers to code allowing unit or acceptance tests to create, read and write, and manipulate in other ways "virtual" files, without any actual disk access. Everything is...
6
by: Skip Montanaro | last post by:
I wrote PEP 304, "Controlling Generation of Bytecode Files": http://www.python.org/peps/pep-0304.html quite awhile ago. The first version appeared in January 2003 in response to questions...
0
by: get.certified | last post by:
Hi there... Hope you will be doing fine. Actually, we offer Services regarding Testing of Certification of Microsoft, CISCO, ORACLE, CompTia (A+), MacroMedia, CheckPoint, and many other...
2
by: spamharvestor | last post by:
I want to learn C. As I was searching for helpful links, I came across this message with many C and C++ links - http://tinyurl.com/8ep3f However, most of the links shown, such as ...
0
by: Tony Caduto | last post by:
I just recently ported a Delphi synchronous socket library to C#, at least the core, but it can do read and writelines (CRLF delimited) without the over head of the NetworkStream and...
3
by: LP | last post by:
Hello, I am in process evaluating different reporting tools. I did use CR 9 product in the past, but I can't say that I had good experience with it. I am just curious if anyone has tried the...
6
by: mortenbagai | last post by:
Hi, I was rifling through python.org to see if there was an existing Python user's group for the Los Angeles area. Doesn't seem like it, so maybe we should start one? I'm interested in helping...
7
by: windandwaves | last post by:
Hi Folk Is there anyone out there in a hotel reservation system. I have written one over the last few years and I would like to know if anyone has a similar interest. > Nicolaas
66
by: QuantumG | last post by:
Decompilation is the process of recovering human readable source code from a program executable. Many decompilers exist for Java and .NET as the program executables (class files) maintain much of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.