コード例 #1
0
 public Schema()
     : base()
 {
     InstanceType = typeof(__Franchis__);
     Properties.ClearExposed();
     Html = Add <__TString__>("Html");
     Html.DefaultValue = "/Ahsan/Corporation/FranchiseJson.html";
     Html.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Html__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Html__ = (System.String)_v_; }, false);
     Name = Add <__TString__>("Name");
     Name.DefaultValue = "";
     Name.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Name__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Name__ = (System.String)_v_; }, false);
     AverageCommision = Add <__TLong__>("AverageCommision");
     AverageCommision.DefaultValue = 0L;
     AverageCommision.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__AverageCommision__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__AverageCommision__ = (System.Int64)_v_; }, false);
     NumberOfHomesSold = Add <__TLong__>("NumberOfHomesSold");
     NumberOfHomesSold.DefaultValue = 0L;
     NumberOfHomesSold.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__NumberOfHomesSold__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__NumberOfHomesSold__ = (System.Int64)_v_; }, false);
     TotalCommission = Add <__TLong__>("TotalCommission");
     TotalCommission.DefaultValue = 0L;
     TotalCommission.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__TotalCommission__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__TotalCommission__ = (System.Int64)_v_; }, false);
     Trend = Add <__TLong__>("Trend");
     Trend.DefaultValue = 0L;
     Trend.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__Trend__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__Trend__ = (System.Int64)_v_; }, false);
     ObjectId = Add <__TString__>("ObjectId", bind: "ObjectId");
     ObjectId.DefaultValue = "";
     ObjectId.SetCustomAccessors((_p_) => { return(((__Franchis__)_p_).__bf__ObjectId__); }, (_p_, _v_) => { ((__Franchis__)_p_).__bf__ObjectId__ = (System.String)_v_; }, false);
 }
コード例 #2
0
 public Schema()
     : base()
 {
     InstanceType = typeof(__CCoAllFranc__);
     Properties.ClearExposed();
     FranchiseName = Add <__TString__>("FranchiseName");
     FranchiseName.DefaultValue = "";
     FranchiseName.SetCustomAccessors((_p_) => { return(((__CCoAllFranc__)_p_).__bf__FranchiseName__); }, (_p_, _v_) => { ((__CCoAllFranc__)_p_).__bf__FranchiseName__ = (System.String)_v_; }, false);
     HouseSold = Add <__TLong__>("HouseSold");
     HouseSold.DefaultValue = 0L;
     HouseSold.SetCustomAccessors((_p_) => { return(((__CCoAllFranc__)_p_).__bf__HouseSold__); }, (_p_, _v_) => { ((__CCoAllFranc__)_p_).__bf__HouseSold__ = (System.Int64)_v_; }, false);
     AverageCommission = Add <__TLong__>("AverageCommission");
     AverageCommission.DefaultValue = 0L;
     AverageCommission.SetCustomAccessors((_p_) => { return(((__CCoAllFranc__)_p_).__bf__AverageCommission__); }, (_p_, _v_) => { ((__CCoAllFranc__)_p_).__bf__AverageCommission__ = (System.Int64)_v_; }, false);
     TotalCommission = Add <__TLong__>("TotalCommission");
     TotalCommission.DefaultValue = 0L;
     TotalCommission.SetCustomAccessors((_p_) => { return(((__CCoAllFranc__)_p_).__bf__TotalCommission__); }, (_p_, _v_) => { ((__CCoAllFranc__)_p_).__bf__TotalCommission__ = (System.Int64)_v_; }, false);
     SalesTrend = Add <__TLong__>("SalesTrend");
     SalesTrend.DefaultValue = 0L;
     SalesTrend.SetCustomAccessors((_p_) => { return(((__CCoAllFranc__)_p_).__bf__SalesTrend__); }, (_p_, _v_) => { ((__CCoAllFranc__)_p_).__bf__SalesTrend__ = (System.Int64)_v_; }, false);
     EditURL = Add <__TString__>("EditURL");
     EditURL.DefaultValue = "";
     EditURL.SetCustomAccessors((_p_) => { return(((__CCoAllFranc__)_p_).__bf__EditURL__); }, (_p_, _v_) => { ((__CCoAllFranc__)_p_).__bf__EditURL__ = (System.String)_v_; }, false);
 }