コード例 #1
0
 private void UnSetHandlers(CriteriaUsageParameter p)
 {
     if (p == null)
     {
         return;
     }
     p.SuffixChanged -= SuffixChangedHandler;
 }
コード例 #2
0
ファイル: Criteria.cs プロジェクト: rajeshwarn/CslaGenFork
 void SetHandlers(CriteriaUsageParameter p)
 {
     if (p == null)
     {
         return;
     }
     p.SuffixChanged += SuffixChanged;
 }
コード例 #3
0
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType == typeof(String) && value is CriteriaUsageParameter)
            {
                CriteriaUsageParameter so = (CriteriaUsageParameter)value;
                return("Factory: " + so.Factory);
            }

            return(base.ConvertTo(context, culture, value, destinationType));
        }
コード例 #4
0
        internal static CriteriaUsageParameter Clone(CriteriaUsageParameter masterUsageParam)
        {
            var newUsageParam = new CriteriaUsageParameter();

            newUsageParam.Factory       = masterUsageParam.Factory;
            newUsageParam.AddRemove     = masterUsageParam.AddRemove;
            newUsageParam.DataPortal    = masterUsageParam.DataPortal;
            newUsageParam.RunLocal      = masterUsageParam.RunLocal;
            newUsageParam.Procedure     = masterUsageParam.Procedure;
            newUsageParam.ProcedureName = masterUsageParam.ProcedureName;
            newUsageParam.FactorySuffix = masterUsageParam.FactorySuffix;

            return(newUsageParam);
        }
コード例 #5
0
ファイル: Criteria.cs プロジェクト: rajeshwarn/CslaGenFork
        internal static Criteria Clone(Criteria masterCrit)
        {
            var newCrit = new Criteria(masterCrit.ParentObject);

            newCrit.Name = masterCrit.Name;
            newCrit.CriteriaClassMode = masterCrit.CriteriaClassMode;
            newCrit.NestedClass       = masterCrit.NestedClass;
            newCrit.Summary           = masterCrit.Summary;
            newCrit.Remarks           = masterCrit.Remarks;

            newCrit.CreateOptions = CriteriaUsageParameter.Clone(masterCrit.CreateOptions);
            newCrit.GetOptions    = CriteriaUsageParameter.Clone(masterCrit.GetOptions);
            newCrit.DeleteOptions = CriteriaUsageParameter.Clone(masterCrit.DeleteOptions);
            newCrit.Properties.AddRange(CriteriaPropertyCollection.Clone(masterCrit.Properties));

            return(newCrit);
        }