This question is locked. New answers and comments are not allowed.
Hi All,
How can we specify the string length in OpenAccess.
We create a class as follows
using System.ComponentModel.DataAnnotations;
namespace Crowdlogistics.Party.Domain
{
[Serializable]
public class PartyRelationShipType
{
public int RelationshipTypeID { get; set; }
public string RelationshipType { get; set; }
[StringLength(12)]
public string CreatedBy { get; set; }
public DateTime CreatedOn { get; set; }
[StringLength(12)]
public string UpdatedBy { get; set; }
public DateTime UpdatedOn { get; set; }
}
}
But string length was not taken in DB. How can we do this.
Development Team.