public int TestGetStatusByDesc(string statusDesc) { Status oStatus = new Status(); StatusEntity SE = oStatus.GetStatusByDesc(statusDesc); if (!SE.HasValues) { //oStatus.NewEntity(); oStatus.Entity.StatusDesc = statusDesc; oStatus.Entity.StatusDescExplanation = statusDesc; oStatus.SaveEntity(); } return oStatus.Entity.StatusID;When I ran (via my testbench) the above (with the NewEntity() line commented) for a value that did not exist in the status table, nothing was added or saved. When I ran the code after removing the comment so NewEntity would run, the row was added and successfully saved.