public ActivationModel ValidateProduct() { //var dt = DbCommandUtil.GetCurrentSqlDate(true); //var loc = dt.ToLocalTime(); return(Singleton.Edition == PinnaFaceEdition.CompactEdition ? DbCommandUtil.ValidateProductSqlCe() : DbCommandUtil.ValidateProductSql()); }
public bool ValidateProduct() { var activationModel = DbCommandUtil.ValidateProductSql(); if (activationModel != null && activationModel.DatabaseVersionDate != 0 && activationModel.MaximumSystemVersion != 0) { if (Singleton.SystemVersionDate < activationModel.DatabaseVersionDate) { return(false); } } return(true); }
public bool ValidateProduct() { //var dt = DbCommandUtil.GetCurrentSqlDate(true); //var loc = dt.ToLocalTime(); var activationModel = Singleton.Edition == PinnaFaceEdition.CompactEdition ? DbCommandUtil.ValidateProductSqlCe() : DbCommandUtil.ValidateProductSql(); if (activationModel != null && activationModel.DatabaseVersionDate != 0 && activationModel.MaximumSystemVersion != 0) { if (Singleton.SystemVersionDate < activationModel.DatabaseVersionDate) { return(false); } } return(true); }