473,385 Members | 1,400 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,385 software developers and data experts.

Persistance using attributes, reflection and inheritance

As I'm not working on many c# projects at the moment I thought I'd spend
some time investigating the subject line.

Getting quite close to a conclusion, it works, it's a little slow (but still
in development), supports 1:1, 1:m, m:m relationships etc.

I've seen several "previews" of ObjectSpaces, i.e. people who've created a
cut down version of the final implementation MS will give and none of them
use this method. I can see why custom attributes, inherticance etc. may put
people off but I would be interested in discovering any other issues you
guys have with this type of implementation.

I'm looking at using my app as a prototyping tool initialy, but given time
it may be viable as a valid data tier.

Any views appreciated.

Chris.
Nov 16 '05 #1
2 1084
It certainly sounds interesting. As soon as I hear "reflection"
though, I think "slow".

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 24 Nov 2004 23:25:10 -0000, "Tilted" <pu***@gvygrq.pb.hx
(ROT13)> wrote:
As I'm not working on many c# projects at the moment I thought I'd spend
some time investigating the subject line.

Getting quite close to a conclusion, it works, it's a little slow (but still
in development), supports 1:1, 1:m, m:m relationships etc.

I've seen several "previews" of ObjectSpaces, i.e. people who've created a
cut down version of the final implementation MS will give and none of them
use this method. I can see why custom attributes, inherticance etc. may put
people off but I would be interested in discovering any other issues you
guys have with this type of implementation.

I'm looking at using my app as a prototyping tool initialy, but given time
it may be viable as a valid data tier.

Any views appreciated.

Chris.


Nov 16 '05 #2
True it is slow.

But how much slower is something I need to look into, I know there are
several techniques I need to use to speed it up. It's not even close to
being ready for human consumption yet as my investigations tend to get dirty
and the code suffers a little.

There are a few others who've tried this technique but I don't think they've
explored it as deeply as I have. Probably because it was too slow, we'll
see.

Thanks for the input anyway.

Chris

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:2g********************************@4ax.com...
It certainly sounds interesting. As soon as I hear "reflection"
though, I think "slow".

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 24 Nov 2004 23:25:10 -0000, "Tilted" <pu***@gvygrq.pb.hx
(ROT13)> wrote:
As I'm not working on many c# projects at the moment I thought I'd spend
some time investigating the subject line.

Getting quite close to a conclusion, it works, it's a little slow (but
still
in development), supports 1:1, 1:m, m:m relationships etc.

I've seen several "previews" of ObjectSpaces, i.e. people who've created a
cut down version of the final implementation MS will give and none of them
use this method. I can see why custom attributes, inherticance etc. may
put
people off but I would be interested in discovering any other issues you
guys have with this type of implementation.

I'm looking at using my app as a prototyping tool initialy, but given time
it may be viable as a valid data tier.

Any views appreciated.

Chris.

Nov 16 '05 #3

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

Similar topics

50
by: Dan Perl | last post by:
There is something with initializing mutable class attributes that I am struggling with. I'll use an example to explain: class Father: attr1=None # this is OK attr2= # this is wrong...
1
by: NotEnough | last post by:
I have a program assigment due next week. I have a a simple c++ grade average program below. How do I turn it into an inheritance. Where Grade is the base class. And Quiztest - Project - LabTest -...
3
by: John Spiegel | last post by:
Hi All, I've been working on building a .dll in C# (framework 1.1) and using it in VFP8. As always, the example that runs so smoothly in the article fails at a rather basic point in practice. ...
1
by: Lee | last post by:
I need to implement a custom ToString method for derived classes. The method should return a string that is the result of concatenating the results of a ToString on each of the fields in the...
3
by: Mark R. Dawson | last post by:
Hi all, I am trying to get custom attributes from a property. I can do this if I pass in the name of the property i.e. "Name" to the reflection methods, but if I pass in set_Name which is what...
2
by: prabhupr | last post by:
Hi Folks I was reading this article (http://www.dotnetbips.com/articles/displayarticle.aspx?id=32) on "Custom Attribute", written by Bipin. The only thing I did not understand in this article...
15
by: Jeff Mason | last post by:
Hi, I'm having a reflection brain fog here, perhaps someone can set me on the right track. I'd like to define a custom attribute to be used in a class hierarchy. What I want to do is to...
4
by: =?Utf-8?B?QWJoaQ==?= | last post by:
I am using Reflection to invoke methods dynamically. I have got a special requirement where I need to pass a value to method by setting the custom method attribute. As I cannot change the...
2
by: Martin Eckart | last post by:
Hi guys, I have a class which contains ~ 200 properties. Out of those 200 properties I need to access 10 (which I know beforehand already) via reflection in another class. Currently I am doing...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.