471,353 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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


Hello All !

1) At first, please excuse me my english :)

2) Explanation

I'd like to create a persistent database class that when the typed objects
are changed, the class automatically saves the data in the database engine
such as MSSQL Server.


Employee employee = new Employee();
employee.Name = "VĂ*tor";
myPersistentCollection.Add(employee); // generates and runs
// a
"INSERT INTO" SQL statement
employee.Birth = new Datetime(1980, 6, 23); // generates and runs a
// SQL
myPersistentCollection.Remove(employee); // run "DELETE" SQL statement

// PersistentCollection is generic (PersistentCollection<T>)

I'd like catch all changes on typed classes and save. Then I read ftom the
article: http://msdn.microsoft.com/msdnmag/is...P/default.aspx,
about AOP and inherits the ContextBoundObject on target typed object classes
and sign then with a CallTracingAttribute (inherits from ContextAttribute).
Then I can catch all changes in the target classes.

3) The problem

The problem is that I can't catch the INSTANCE of target typed classes. I'd
like to take these instances to get a referenced collection object that has
information about database and save them.

Do anybody have a idea?

Much very thanks for all

Jul 21 '05 #1
0 741

This discussion thread is closed

Replies have been disabled for this discussion.

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.