News, examples, tips, ideas and plans.
Thoughts around ORM, .NET and SQL databases.

Friday, June 19, 2009

DO4 and Silverlight: will it be easy to make them friends?

Today I've been analyzing this. Briefly, yes - it won't be too complex. Hopefully, 2-3 man-months. Now the details:

1) Dependencies on assemblies which aren't compatible with Silverlight
- Obviously we'll get rid of all the providers except memory provider (in future - file system provider as well).
- It's easy to get rid of Parallel FX as well - actually we don't use it intensively for now.
- The only left one is log4net. Again, quite easy: we use our own logging abstraction layer I'm promising to describe for very long time. In our case logging is fully replaceable.

Btw, there is PostSharp as well, but its 1.5 and upcoming 2.0 versions are ready for Silverlight. So we must migrate to one of them. Most likely, we'll wait for 2.0.

2) Overwhelming Reflection & Reflection.Emit limitations in Silverlight
As it looks like, it won't be too complex. Silverlight limits the reflection only to members your code can access directly, so no any privates or internals. We have lots of internal classes we're reflecting by AssociateProvider (it provides comparers, hashers, size calculators, arithmetics and so on), but actually we've made them internal just because they aren't must be necessarily public. They implement the interfaces AssociateProvider looks for, that's it.

So in majority of cases it will be enough to open such types for public access - they're anyway frequently "hidden" into Internals namespaces.

We also emit lots of code - e.g. whole Tuples infrastructure is build on Reflection.Emit. But AFAIK we never used such things as accessing internal or private members of types we don't emit. Must be checked, of course, but at the first glance it seems relatively easy to fix.

I remember just one place: we make PostSharp to build protected constructors for Entity & Structure ancestors - they look like this one. They're used on materialization. But we can make PostSharp to emit some public static member invoking them as well (specially for Silverlight).

3) Absence of serialization in Silverlight
This is the most complex part. On the other hand, we anyway need fast binaty serialization and currently looking for good approaches there. DO4 already uses serialization few several places, including deserialization of aspects and Metadata.Extension instance storing simplified version of current Storage model (I wrote we use it to make schema upgrade layer to be aware of type-level structure, instead of just table-level structure) and Storage itself (Entities already support serialization by IFormatter). Furthermore, upcoming sync and file system provider also require it.

Our final set of decisions related to serialization is described in this issue. Having it implemented, we'll get fully portable serialization layer.

It seems that's all. If you know any other pitfalls, please notify us. If you're interested in getting Silverlight support, please vote for it in upcoming survey.

12 comments:

  1. Flipkart is Offering Cashback Offers Flipkart Cashback Offer You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart Cashback Offers You will get upto 75% Discount

    Flipkart is Offering Cashback Offers Flipkart big billion day offers You will get upto 75% Discount

    Flipkart is one of the biggest world wide eCommerce Site flipkart cashback offersso

    Flipkart is one of the biggest world wide eCommerce Site Flipkart hdfc offersso


    ReplyDelete
  2. nice article post.good content.Helpful & Useful Info. nice website.great information.thanks
    Its awesome information ever thanks for sharing.. iam following your website .
    great website

    flipkartdealoftheday,
    flipkart today mobile offers,
    flipkart offers fashion,
    flipkart big offer day,
    flipkart today offer list,
    flipkart offers on shoes,
    amazon today offer,
    flipkart sale today offer mobile



    amazon cash back offers
    amazon cashback sbi
    amazon cashback offer hdfc,
    amazon pay cashback offer,
    amazon hdfc credit card offer 2017,
    amazon credit card offers 2017,
    amazon axis bank offer 2017,
    amazon cashback not received,
    credit card offers on flipkart

    Amazon Cashback Offers December 2017 Upto 65% Cashback Deals Amazon cashback offers with sbi hdfc icici axis banks credit & debit card on mobiles appliances TV, washing machines laptops computers books and many.


    flipkart cashback offers today,
    flipkart bank offers,
    flipkart cash back coupons,
    flipkart offers 2017,
    flipkart coupons 2017,
    flipkart cashback offers 2017,
    flipkart cashback offers,
    flipkart cash back offers,
    flipkart cashback coupons,
    flipkart cashback



    Amazon India HDFC Bank debit &credit card offers for February 2018 promise up to 10% cash back on online shopping at Amazon.in Sale

    nice article post.good content.Helpful & Useful Info. nice website.great information.thanks


    Flipkart cashback offers,
    Flipkart cashback,
    Flipkart cashback,
    Flipkart cashback offers,
    Flipkart hdfc offer,
    Flipkart icici offer,
    Flipkart sbi offer,
    Flipkart axis offer,
    Flipkart HDFC Credit/Debit Card Cashback Offer,
    Flipkart citi bankoffer,
    Flipkart amex offer,
    Flipkart uco cashback offers,
    Flipkart vyshya bank offers,
    Flipkart offers 2016,
    Flipkart cashback,
    Flipkart,
    flipkartcashbackoffers,
    Flipkart offers,
    Flipkart mobile offers,
    Flipkart electronics offers,
    Flipkart offers today,
    Flipkart deals,
    Flipkart coupons,
    Jobs Charge,
    Flipkart cashback coupons,
    Flipkart cashback promo codes,
    Flipkart cashback discounts,
    Flipkart cashback latest,
    Flipkart cashback offers,
    Flipkart cashback,
    Flipkart cashback,
    Flipkart cashback offers,
    Flipkart hdfc offer,
    Flipkart icici offer,
    Flipkart sbi offer,
    Flipkart axis offer,
    Flipkart HDFC Credit/Debit Card Cashback Offer,
    Flipkart citi bankoffer,
    Flipkart amex offer,
    Flipkart uco cashback offers,
    Flipkart vyshya bank offers,
    Flipkart offers 2016,
    Flipkart cashback,
    Flipkart,
    flipkartcashbackoffers,
    Flipkart offers,
    Flipkart mobile offers,
    Flipkart electronics offers,
    Flipkart offers today,
    Flipkart deals,
    Flipkart coupons,
    Jobs Charge,
    Flipkart cashback coupons,
    Flipkart cashback promo codes,
    Flipkart cashback discounts,
    Flipkart cashback latest



    flipkart cashback offers today,
    flipkart bank offers,
    flipkart cash back coupons,
    flipkart offers 2017,
    flipkart coupons 2017,
    flipkart cashback offers 2017,
    flipkart cashback offers,
    flipkart cash back offers,
    flipkart cashback coupons,
    flipkart cashback

    ReplyDelete
  3. Grab Cashback - Up to 50% Off at Flipkart SHOP NOW,
    ICICI debit card EMI offers - Flipkart,
    Debit card EMI facility - Flipkart,
    ICICI debit card EMI offers - Flipkart,
    Flipkart HDFC EMI offers,
    Grab Cashback - Up to 50% Off at Flipkart SHOP NOW,
    10% Instant Discount on SBI Credit Cards at Flipkart,
    10% Instant Discount on SBI Credit Cards - Flipkart
    10% Instant Discount with HDFC Bank Debit and Credit at Flipkart
    10% Instant Discount on SBI Credit Cards - Flipkart,
    10% Instant Discount on SBI Credit Cards at Flipkart
    Monsoon Offers on Home Appliances - Flipkart,
    Flipkart SBI Offer 2019: 10% Instant Cashback,
    Flipkart HDFC Offer 2019: 10% Instant Offer,
    Flipkart Cashback offer 2019: 10% Cashback,
    Cashless Pay Store - Flipkart,
    Flat Rs. 4000 instant discount on transactions made using at Flipkart,
    No Cost EMI available on Credit Cards Valid till 10 January at Flipkart
    Diwali Festive Sale from 9pm - Flipkart
    10% Off on All Cards on Home Appliances - Flipkart
    10% Off on Cooling Days at Flipkart on SBI Credit Cards | SBI Card
    flipkart samsung carnival,
    flipkart mobiles,
    TV & appliances Sale (Axis Bank Offer) at Flipkart,
    10% Off on purchase of Fashion, Home & Furniture and at Flipkart,

    Air purifiers Offers - Flipkart,
    Offer Details - Flipkart,
    SBI Debit Card Offer at Flipkart,
    Extended Warranty on Appliances - Flipkart,
    Ganesh Chaturthi Festive Offers - Flipkart,
    EMI on Debit Cards - Flipkart,
    Top selling Latest Mobiles - Flipkart,
    Honor Mobiles Day - Flipkart
    Axis Bank Debit Card - Flipkart,
    HDFC Debit Cards - Flipkart,
    ICICI Debit Cards - Flipkart,
    Top selling Latest Mobiles - Flipkart,
    Explore New & Latest Mobiles of this season - Flipkart
    Republic Day Sale - 10% Instant Discount on SBI Credit Cards - Flipkart
    Flipkart cashback offers coupons-Daily discount Coupons
    Flipkart Bank offers,
    Flipkart Cashback Offers Coupons Electronics ,
    Flipkart Cashback offers Lifestyle ,
    Flipkart Cashback offers on Music,
    Flipkart Cashback offers on Computers devices,
    Flipkart Cashback offers on Furniture ,
    Flipkart Cashback offers on Footwear ,
    Flipkart Cashback offers on Accessories,
    Flipkart Cashback offers on Other Products ,
    Microwave oven – Get 20% to 55% offer,
    Flipkart Cashback offers on Watches,

    Flipkart Bank Cashback,Cashback Offers
    AXIS Bank:10% discount Cashback
    ICICI Bank :15% Cashback Discount
    Yes bank:10% Cashback Discount
    State Bank of India:10% Cashback Discount
    HDFC Bank:10% Cashback Discounts
    CITI Bank:10% Cashback Discounts

    ReplyDelete

  4. Flipkart CashBack Offers,telugu bloggers ,telugu websites

    Flipkart CashBack Offers - SBI, HDFC, ICICI, Citibank Cards,flipkart sbi debit card emi,flipkart upcoming offers on mobiles,flipkart credit card,flipkart cashback phonepe,flipkart credit card generator,flipkart cashback offer phonepe,flipkart american express,india fake debit card generator,flipkart american express gift card,sbi credit card offers on flipkart today,sbi flipkart offer,sbi debit card offers cash back,sbi flipkart offer 2018,,telugu bloggers ,telugu websites


    Offers.Flipkart .

    flipkart bank offers,flipkart cash back coupons, flipkart offers,flipkart cashback offers ,flipkart cashback offers,flipkart cash back offers,flipkart cashback coupons,flipkart cashback,Flipkart Cashback Offers,Flipkart Bank Offers, flipkart upcoming offers on mobiles, flipkart hdfc offer, flipkart icici offer,sbi credit card offers on flipkart today,sbi flipkart offer, hdfc credit card offers on flipkart, flipkart upcoming offers on mobiles, flipkart offers


    flipkart today deal offer,flipkart todays deal,flipkart best offer today,flipkart cashback offer today,flipkart mobile app offers today,flipkart mobile deals today

    "Flipkart Cashback Offers || Flipkart Bank Offers || Flipkart Deals 2018 ||" "flipkart upcoming offers on mobiles, hdfc credit card offers on flipkart 2018, sbi credit card offers on flipkart today, flipkart hdfc offer terms and conditions, sbi flipkart offer 2018, flipkart cashback phonepe, flipkart hdfc offer august 2018, flipkart icici offers

    Flipkart CashBack Offers July 2018 - SBI, HDFC, ICICI, Citibank Cards,Cashback Offers Coupons,

    Today Special deals offers


    Flipkart CashBack Offers June 2018 - SBI, HDFC, ICICI, Citibank Cards

    Best of Home Furnishing min 40% off:

    flipkart Mobile Accessories,flipkart Storage devices,flipkart Brands at best prices,flipkart Top Offers,flipkart Fashion for Travel Lovers,FLIPKART Great Offers On Furniture,FLIPKART Discounts for You,flipkart Deals of the Day


    flipkart axis cashback offer,

    flipkart discount coupon codes, flipkartcashbackoffers,

    ReplyDelete

  5. Flipkart SBI Offer 2019: 10% Instant Cashback.
    Flipkart HDFC Offer 2019: 10% Instant Offer.
    Flipkart Cashback offer 2019: 10% Cashback.
    Flipkart SBI Offer 2019: 10% Instant Cashback.
    Flipkart HDFC Offer 2019: 10% Instant Offer.
    Flipkart Cashback offer 2019: 10% Cashback.
    SBI Credit Card /Debit Card Offers 10% Instant Cashback
    Get Cashbackhttps://www.flipkart.com/?affid=crishkuma1
    HDFC Credit Ca rd /Debit Card Offers 10% Instant Cashback
    Get Cashbackhttps://www.flipkart.com/?affid=crishkuma1
    Citi Bank Credit Card /Debit Card Offers 10% Instant Cashback
    Get Cashbackhttps://www.flipkart.com/?affid=crishkuma1
    Axis Bank Credit Card /Debit Card Offers 10% Instant Cashback (Extra 5% on Axis Buzz Cards)
    Get Cashback
    https://www.flipkart.com/?affid=crishkuma1
    ICICI Bank Credit Card /Debit Card Offers 10% Instant Cashback
    Get Cashback
    https://www.flipkart.com/?affid=crishkuma1
    YES Bank Credit Card /Debit Card Offers 10% Instant Cashback
    Get Cashback
    https://www.flipkart.com/?affid=crishkuma1
    IDBI Bank Credit Card /Debit Card Offers 10% Instant Cashback
    Get Cashback
    https://www.flipkart.com/?affid=crishkuma1
    Kotak Bank Credit Card /Debit Card Offers 10% Instant Cashback
    Get Cashback
    https://www.flipkart.com/?affid=crishkuma1

    flipkart sbi debit card offers

    flipkart offers

    flipkart axis offers
    flipkart sbi offer
    flipkart sbi debit card emi
    flipkart sbi credit card offer
    flipkart sbi debit card emi
    flipkart sbi credit card offers
    flipkart hdfc,
    flipkart hdfc offer,
    flipkart hdfc credit card offer,
    flipkart icici debit card emi
    flipkart icici credit card offer
    flipkart icici offer
    flipkart axis,
    flipkart axis bank offer,

    ReplyDelete