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,65 @@
using System;
using System.Data.SqlClient;
using Csla;
[Serializable()]
public class DynamicRootList :
EditableRootListBase<EditableRoot>
{
#region Authorization Rules
public static bool CanGetObject()
{
// TODO: customize to check user role
return ApplicationContext.User.IsInRole("");
}
public static bool CanEditObject()
{
// TODO: customize to check user role
return ApplicationContext.User.IsInRole("");
}
#endregion
#region Factory Methods
public static DynamicRootList NewDynamicRootList()
{
return new DynamicRootList();
}
public static DynamicRootList GetDynamicRootList()
{
return DataPortal.Fetch<DynamicRootList>();
}
private DynamicRootList()
{
// require use of factory methods
}
#endregion
#region Data Access
private void DataPortal_Fetch()
{
// TODO: load values
RaiseListChangedEvents = false;
using (SqlDataReader dr = null)
{
while (dr.Read())
{
Add(EditableRoot.GetEditableRoot(dr));
}
}
RaiseListChangedEvents = true;
}
#endregion
}