Servicestack Ormlite 似乎忽略了我的数据库模式 c#

Servicestack Ormlite seems to be ignoring my Database Schemas c#

大家好,如果可能的话需要快速帮助我正在尝试做(我认为很简单的)快速查询。

我正在使用的对象

 [Schema("Prospect")]
    [Alias("TrackedSource")]
    public class ProspectSource
    {
        [PrimaryKey]
        [AutoIncrement]
        public int Id { get; set; }

       public int? ClientId { get; set; }

 public string Name { get; set; }
  public bool IsActive { get; set; }
}

我是运行下面的命令

string source ="unknown";
int clientId = 10000;
  var foundSource = Db.Select<ProspectSource>(q => (q.Name.Contains(source.Trim()) || (q.Name.Contains(source.Trim()) && q.ClientId == clientId) && q.IsActive)).FirstOrDefault();

但是 运行 这给了我以下生成的 sql

SELECT "Id",  "ClientId", "Name", "IsActive"
FROM "TrackedSource"
WHERE (upper("Name") like '%UNKNOWN%' OR ((upper("Name") like '%UNKNOWN%' AND ("ClientId" = 10000)) AND "IsActive"=1))

当然会生成错误 - 无法找到 TrackedSource。

我预计会生成以下 sql

SELECT "Id",  "ClientId", "Name", "IsActive"
FROM "Prospect"."TrackedSource"
WHERE (upper("Name") like '%UNKNOWN%' OR ((upper("Name") like '%UNKNOWN%' AND ("ClientId" = 10000)) AND "IsActive"=1))

任何知道为什么会发生这种情况的人

使用最新版本的 Servicestack

此问题已从 v4.0.39+ 版本的 ServiceStack 中解决,现在 available on MyGet