Example #1
0
 public SalesforceVisitor(ISalesforceNamingConvention namingConvention, SelectTypeEnum selectType)
 {
     NamingConvention   = namingConvention;
     SelectType         = selectType;
     SelectByExpression = new List <string>();
     OrderByExpression  = new List <string>();
     QueryType          = QueryTypeEnum.Enumerator;
     WhereExpression    = new List <string>();
 }
 public SalesforceQuery<T> Query<T>(SelectTypeEnum selectType, out QueryTranslateSalesforceProvider<T> provider)
 {
     provider = new QueryTranslateSalesforceProvider<T>(new ModelGeneratorNamingConvention(), selectType);
     return new SalesforceQuery<T>(provider);
 }
Example #3
0
 public SalesforceQuery <T> Query <T>(SelectTypeEnum selectType = SelectTypeEnum.SelectIdAndUseAttachModel) where T : sObject
 {
     return(new SalesforceQuery <T>(new SalesforceProvider <T> {
         SelectType = selectType
     }));
 }
Example #4
0
 protected SalesforceProviderBase(ISalesforceNamingConvention namingConvention, SelectTypeEnum selectType = SelectTypeEnum.SelectIdAndUseAttachModel)
 {
     NamingConvention = namingConvention;
     SelectType       = selectType;
 }
Example #5
0
 public NullSalesforceProvider(ISalesforceNamingConvention namingConvention, SelectTypeEnum selectType = SelectTypeEnum.SelectIdAndUseAttachModel) : base(namingConvention, selectType)
 {
 }
 public SalesforceVisitor(SelectTypeEnum selectType)
 {
     SelectType = selectType;
 }
Example #7
0
 public static SalesforceQuery <T> Query <T>(this ForceClient client, SelectTypeEnum selectType = SelectTypeEnum.SelectAllAndUseAttachModel, ISalesforceNamingConvention namingConvention = null) where T : class
 {
     return(new SalesforceQuery <T>(new ForceClientSalesforceProvider <T>(client, namingConvention ?? new ModelGeneratorNamingConvention(), selectType)));
 }
 public ForceClientSalesforceProvider(ForceClient forceClient, ISalesforceNamingConvention objectNameProvider, SelectTypeEnum selectType = SelectTypeEnum.SelectIdAndUseAttachModel) : base(objectNameProvider, selectType)
 {
     ForceClient = forceClient;
 }
 protected SalesforceQuery <T> Query <T>(SelectTypeEnum selectType = SelectTypeEnum.SelectIdAndUseAttachModel) where T : sObject
 {
     return(Helper.Query <T>(selectType));
 }
 public SalesforceVisitor(SelectTypeEnum selectType)
 {
     SelectType = selectType;
 }