You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a way to discern between Insert/Update so some attbt dont get updated.
public class User
{
[Ignore]
public int id{ get; set; }
public string name{ get; set; }
[IgnoreUpdate]
public DateTime CreatedAt { get; set; }
[IgnoreUpdate]
public int CreatedBy { get; set; }
[IgnoreInsert]
public DateTime? ModifiedAt { get; set; }
[IgnoreInsert]
public int? ModifiedBy { get; set; }
}
Something like that
The text was updated successfully, but these errors were encountered:
I need a way to discern between Insert/Update so some attbt dont get updated.
public class User
{
[Ignore]
public int id{ get; set; }
public string name{ get; set; }
[IgnoreUpdate]
public DateTime CreatedAt { get; set; }
[IgnoreUpdate]
public int CreatedBy { get; set; }
[IgnoreInsert]
public DateTime? ModifiedAt { get; set; }
[IgnoreInsert]
public int? ModifiedBy { get; set; }
}
Something like that
The text was updated successfully, but these errors were encountered: