I am currently having a problem with the AutoMapper/OrmLite not creating primary keys.
This is the Class in question:
using ServiceStack.DataAnnotations;
using System;
namespace MTRAN.DataModel
{
[Alias(“Projects”)]
public class Project : BaseAuditFields
{
[PrimaryKey, AutoId]
public Guid ProjectId { get; set; }
[Required, StringLength(16), Unique]
public string ProjectCode { get; set; }
[Required, StringLength(100)]
public string ProjectName { get; set; }
[Ignore]
public string TranslatedInNos { get; set; }
[Ignore]
public int TotalWordCount { get; set; }
}
}
And this is the resulting database
Any clue as to why this is happening ? This issue only started last week and I don’t see any discernible changes in the code that would explain the sudden change in behavior.