public static IEnumerable <PersonSelectAllResult> PersonSelectAll(this TestDataDB dataConnection, out int?RETURN_VALUE) { var ret = dataConnection.QueryProc <PersonSelectAllResult>("[dbo].[Person_SelectAll]", new DataParameter("RETURN_VALUE", null, LinqToDB.DataType.Int32) { Direction = ParameterDirection.ReturnValue, Size = 10 }).ToList(); RETURN_VALUE = Converter.ChangeTypeTo <int?>(((IDbDataParameter)dataConnection.Command.Parameters["RETURN_VALUE"]).Value); return(ret); }
public static int AddIssue792Record(this TestDataDB dataConnection, out int?RETURN_VALUE) { var ret = dataConnection.ExecuteProc("[dbo].[AddIssue792Record]", new DataParameter("RETURN_VALUE", null, LinqToDB.DataType.Int32) { Direction = ParameterDirection.ReturnValue, Size = 10 }); RETURN_VALUE = Converter.ChangeTypeTo <int?>(((IDbDataParameter)dataConnection.Command.Parameters["RETURN_VALUE"]).Value); return(ret); }