supertype

How do I create an F# list containing objects with a common superclass?

I have two functions, horizontal and vertical, for laying out controls. They work like this: let verticalList = vertical [new TextBlock(Text = "one"); new TextBlock(Text = "two"); new TextBlock(Text = "three")] Now verticalList is a control that displays the three textblocks ...

Subtype Supertype with Oracle Object Type Creation. Limit on the number of subtypes?

I have run into an issue when creating a object type in Oracle 10g that inherits from a supertype. We currently have many object types that inherit from this supertype and recently the compiler started throwing the following errors ORA-30745: error occured while trying to add column "SYS_NC_ROWINFO$" in table "DATA_CACHE.CACHE_ENTRIES" ...

GetHashCode with transient/persistent entities

Hiya, I'm implementing a layered supertype that all my entities will be based on. I am currently working on the Equity methods Equals and GetHashCode. I have the following for GetHashCode: public override int GetHashCode() { if (!_hashCode.HasValue) { if (this.Id.Equals(default(T))) { ...

Layer Supertype with Entity Framework...

I was wondering if anyone had any success implementing a layer supertype for their Entities using POCO and Entity Framework v4. The layer supertype mainly deals with the common identity features of my entities, and has been designed for my POCO classes, but I am unsure how to map the object design to the database using edmx? ie Customer...

How do I apply subtypes into a SQL Server database?

I am working on a program in which you can register complaints. There are three types of complaints: internal (errors from employees), external (errors from another company) and supplier (errors made by a supplier). They hold different data which cannot be shared. I currently have 4 tables (complaint, employee, company and supplier). Her...