# \#xaf-entity-framework

**URL:** https://discourse.softwarebydesign.com.au/tag/xaf-entity-framework/34.md

[Latest](https://discourse.softwarebydesign.com.au/latest.md) · [Categories](https://discourse.softwarebydesign.com.au/categories.md) · [Tags](https://discourse.softwarebydesign.com.au/tags.md)

---

## [XAF Copy User Settings Controller](https://discourse.softwarebydesign.com.au/t/xaf-copy-user-settings-controller/6537)

<div class="topic-metadata">

**Author:** [@Kirsten\_Greed](https://discourse.softwarebydesign.com.au/u/Kirsten_Greed)\
**Replies:** 0\
**Last updated:** [17 November 2024 21:37 UTC](https://discourse.softwarebydesign.com.au/t/xaf-copy-user-settings-controller/6537 "2024-11-17T21:37:22Z")

</div>

This is handy when copying one user’s settings to anothers using DevExpress.ExpressApp; using DevExpress.ExpressApp.Actions; using DevExpress.Persistent.BaseImpl.EF; using Microsoft.EntityFrameworkCore; using SBD24.JobT…

---

## [Simple Filter Editor Demonstration](https://discourse.softwarebydesign.com.au/t/simple-filter-editor-demonstration/4346)

<div class="topic-metadata">

**Author:** [@Kirsten\_Greed](https://discourse.softwarebydesign.com.au/u/Kirsten_Greed)\
**Replies:** 0\
**Last updated:** [13 June 2022 00:49 UTC](https://discourse.softwarebydesign.com.au/t/simple-filter-editor-demonstration/4346 "2022-06-13T00:49:18Z")

</div>

Demonstrates a User control with an editor to set the filter on a table. Also using EntityFrameworkCore FromRawSQL to populate the listview

---

## [Using EF 6.4 raw query to populate objects](https://discourse.softwarebydesign.com.au/t/using-ef-6-4-raw-query-to-populate-objects/2993)

<div class="topic-metadata">

**Author:** [@Kirsten\_Greed](https://discourse.softwarebydesign.com.au/u/Kirsten_Greed)\
**Replies:** 0\
**Last updated:** [7 July 2021 01:35 UTC](https://discourse.softwarebydesign.com.au/t/using-ef-6-4-raw-query-to-populate-objects/2993 "2021-07-07T01:35:17Z")

</div>

Code var results = db.Database.SqlQuery\<HeadLineResult\>(sql).ToList(); Cause: This was because the class had a property of type short which I had incorrectly declared as int Error message Exception has been thrown…

---

## [XAF Listview is empty when there are records](https://discourse.softwarebydesign.com.au/t/xaf-listview-is-empty-when-there-are-records/1669)

<div class="topic-metadata">

**Author:** [@Kirsten\_Greed](https://discourse.softwarebydesign.com.au/u/Kirsten_Greed)\
**Replies:** 0\
**Last updated:** [30 April 2019 23:43 UTC](https://discourse.softwarebydesign.com.au/t/xaf-listview-is-empty-when-there-are-records/1669 "2019-04-30T23:43:53Z")

</div>

I have seen this happen when my entity model is not quite correct. For example if the Key is Int16 and I declared it as Int However it also seems a problem if the columnname is too long For example public bool Ex…
