@Kumarkrishna184 Sir,
POCO stands for Plain Old CLR Object or Plain Old C# Object.Precisely it is the Business Object.
It has data, validation (implemented by Data Annotation), and business/domain logic imbibed into it.However, it is persistence ignorant which means it cannot have the save operations (like insert/update/delete)
For example, let's as we have a RateOfInterestMaster POCO Domain Model (picked up from the recent project) as
public class CreateRateOfInterestMaster : FlexCommand
{
public CreateRateOfInterestMaster();
[StringLength(32)]
[RegularExpression("^([a-zA-Z0-9]{32}+)$", ErrorMessage = "Invalid Id")]
[Required]
public string Id { get; set; }
public string LoggedInUserId { get; set; }
[Required]
[StringLength(32)]
public string ProductId { get; set; }
[Required]
public decimal RateOfInterest { get; set; }
[Required]
[StringLength(32)]
public string SubProductId { get; set; }
}
More information:
https://msdn.microsoft.com/library/dd456872(v=vs.100).aspx
Hope this helps
Please ask us in case of any doubt.
--
Thanks & Regards,
RNA Team
Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator