I'm trying to use a view to create an ADO.NET entity using a view. However, that view does not have a single column that is NOT NULL.
One thing that occurred to me was to create a NOT NULL column on the view to use as a 'primary key' for the view. This worked, but the field is still reported as NULL.
Is there a way to force or trick SQL Server to report that view column as NOT NULL?
Imagine the view as something like:
CREATE VIEW vwSample WITH SCHEMABINDING
AS
SELECT ID = convert(uniqueidentifier, /* some computed value */)
,Field1
,Field2
,Field3
FROM tbSample
Note: Before saying that I can edit the entity XML to do such thing, I'm asking this because I have a VERY large number of entities to be created this way.