Commit for development environment setup

This commit is contained in:
2023-06-19 16:12:33 -04:00
parent be72063a3c
commit bbce2ad0a6
2209 changed files with 1171775 additions and 625 deletions

View File

@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using Csla;
namespace Templates
{
[Serializable()]
class ReadOnlyChild : ReadOnlyBase<ReadOnlyChild>
{
#region Business Methods
// TODO: add your own fields, properties and methods
private int _id;
private string _data = string.Empty;
public int Id
{
get { return _id; }
}
public string Data
{
get { return _data; }
}
protected override object GetIdValue()
{
return _id;
}
#endregion
#region Factory Methods
internal static ReadOnlyChild GetReadOnlyChild(SqlDataReader dr)
{
return new ReadOnlyChild(dr);
}
private ReadOnlyChild()
{ /* require use of factory methods */ }
private ReadOnlyChild(SqlDataReader dr)
{
Fetch(dr);
}
#endregion
#region Data Access
private void Fetch(SqlDataReader dr)
{
// load values
_id = dr.GetInt32(0);
_data = dr.GetString(1);
}
#endregion
}
}