using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using Roblox.Common; using Roblox.Common.Persistence; namespace { internal class { private _ID = default(); internal ID { get { return _ID; } set { _ID = value; } } private static string { get { return ; } } internal () { } internal void Delete() { if (_ID == default()) throw new ApplicationException("Required value not specified: ID."); var queryParameters = new List { new SqlParameter("@ID", _ID) }; var dbInfo = new dbInfo( , "", queryParameters ); EntityHelper.DoEntityDALDelete(dbInfo); } internal void Insert() { var queryParameters = new List { }; var dbInfo = new dbInfo( , "", new SqlParameter("@ID", ), queryParameters ); _ID = EntityHelper.DoEntityDALInsert<>(dbInfo); } internal void Update() { var queryParameters = new List { new SqlParameter("@ID", _ID), }; var dbInfo = new dbInfo( , "", queryParameters ); EntityHelper.DoEntityDALUpdate(dbInfo); } private static BuildDAL(SqlDataReader reader) { var dal = new (); while (reader.Read()) { dal.ID = ()reader["ID"]; } if (dal.ID == default()) return null; return dal; } internal static Get( id) { if (id == default()) return null; var queryParameters = new List { new SqlParameter("@ID", id) }; var dbInfo = new dbInfo( , "", queryParameters ); return EntityHelper.GetEntityDAL(dbInfo, BuildDAL); } #$@#@ - Unique ID used to find this section, don't change it. 599W#%2 internal static ICollection<> GetIDsBy( ) { if ( == default()) throw new ApplicationException("Required value not specified: ."); var queryParameters = new List(); queryParameters.Add(new SqlParameter("@", )); return EntityHelper.GetDataEntityIDCollection<>( new dbInfo( , "s_GetIDsBy", queryParameters ) ); } #$@#@2 - Unique ID used to find this section, don't change it. 599W#%44 } }