I just thought I'd share (roughly) what I would expect in .netTiers generated code if this was implemented:
CREATE TABLE [Test] {
[TestID] int IDENTITY(1,1) NOT NULL,
[TestName] varchar(50) NOT NULL
}
CREATE PROCEDURE _Test_GetCustom
AS
BEGIN
SELECT [TestID], [TestName], GETDATE() AS [QueriedDate] FROM [Test]
END
public abstract partial class Test
{
...
public Dictionary<string, object> Properties {
get { return this.entityData.Properties; }
}
public virtual System.Int32 TestID {
get { return this.entityData.TestID; }
set {
this.entityData.TestID = value;
this.entityData.Properties["TestID"] = value;
}
}
internal protected class TestEntityData
{
public Dictionary<string, object> Properties = new Dictionary<string, object>();
...
}
...
}
public abstract partial class TestProviderBaseCore
{
...
public static Example.BusinessLogic.TList<Test> Fill(IDataReader reader, Example.BusinessLogic.TList<Test> rows, int start, int pageLength) {
...
c.TestID = (System.Int32)reader["TestID"];
c.TestName = (System.String)reader["TestName"];
c.Properties["QueriedDate"] = (System.DateTime)reader["QueriedDate"];
...
}
...
}
Cheers,
Brett
"Most human beings have an almost infinite capacity for taking things for granted."
- Aldous Huxley