Hi
The suggestion I made won't affect the generated classes at all as it doesn't touch them. what it would do though is to alter the generated update PROC so that instead of producing:
Code:
CREATE PROCEDURE [proc_TestUpdate]
(
@ID int,
@ParentRef int = NULL,
@Name varchar(50) = NULL,
@RowGUID
)
AS
BEGIN
SET NOCOUNT OFF
DECLARE @Err int
UPDATE [AggregateTest]
SET
[ParentRef] = @ParentRef,
[Name] = @Name,
[RowGUID] = @RowGUID
WHERE
[ID] = @ID
SET @Err = @@Error
RETURN @Err
END
GO
It would (should as it's untested) produce:
Code:
CREATE PROCEDURE [proc_TestUpdate]
(
@ID int,
@ParentRef int = NULL,
@Name varchar(50) = NULL,
@RowGUID
)
AS
BEGIN
SET NOCOUNT OFF
DECLARE @Err int
UPDATE [AggregateTest]
SET
[ParentRef] = @ParentRef,
[Name] = @Name,
WHERE
[ID] = @ID
SET @Err = @@Error
RETURN @Err
END
GO
Notice that the RowGUID field is still listed in it's parameters but it isn't actually used in the update part - much the same as with the ID field. Obviously it's far from ideal and to be frank, I would go with my first option (i.e. copying this table to a new table, removing the GUID fields and re-generating against that) but if you can't do that at this stage then this option, although a bit hacky, should do what you need as far as altering the SPROCs goes.
Hope that helps
Martin