Exemple #1
0
        public TValue GetEntityItem <TValue>() where TValue : Entity
        {
            DataTable dataTable = GetDataTable();

            if (dataTable != null && dataTable.Rows.Count > 0)
            {
                TValue result = TypeHelper.CreateEntity <TValue>();
                result.Fill(dataTable.Rows[0]);
                return(result);
            }
            else
            {
                return(null);
            }
        }