public override object Get(fit.Fixture fixture) { if (environment.SupportsReturnOnInsert) { throw new ApplicationException(environment.GetType() + " supports return on insert, IdRetrievalAccessor should not be used"); } DbCommand cmd = environment.CreateCommand(environment.IdentitySelectStatement, CommandType.Text); // Console.WriteLine(environment.IdentitySelectExpression); object value = cmd.ExecuteScalar(); value = Convert.ChangeType(value, expectedType); //Console.WriteLine("value=" + value + " of " + value.GetType()); return(DBNull.Value.Equals(value) ? null : value); }
public override void Set(fit.Fixture fixture, object value) { }