A computed column is a table column that is not updatable, but instead is based on other data in a row.
This is similar to a view, but it is lighter and can be PERSISTED without having to create an indexed view.
For example, you might have a computed column to combine two numbers like this (in T-SQL):
CREATE TABLE [Foo] ( [FooId] int NOT NULL IDENTITY, CONSTRAINT [Foo_PK] PRIMARY KEY ([FooId]), [ItemA] int, [ItemB] int, [Sum] AS ([ItemA] + [ItemB]) )
Entity Framework needs to be aware of these columns so that it does not try to issue an Update statement that will attempt to change the value of this column.
John gietzen
source share