当前位置: 首页>>代码示例>>C#>>正文


C# Microsoft.CreateResource方法代码示例

本文整理汇总了C#中Microsoft.CreateResource方法的典型用法代码示例。如果您正苦于以下问题:C# Microsoft.CreateResource方法的具体用法?C# Microsoft.CreateResource怎么用?C# Microsoft.CreateResource使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Microsoft的用法示例。


在下文中一共展示了Microsoft.CreateResource方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PopulateRow

        private static void PopulateRow(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup) 
        {

            resourceLookup.Add("Row0", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.IndexedRow"));
            updatable.SetValue(resourceLookup["Row0"], "Id", new System.Guid("432f0da9-806e-4a2f-b708-dbd1c57a1c21"));
            updatable.SetValue(resourceLookup["Row0"], "Name", "Chris");


            resourceLookup.Add("Row1", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.IndexedRow"));
            updatable.SetValue(resourceLookup["Row1"], "Id", new System.Guid("02d5d465-edb3-4169-9176-89dd7c86535e"));
            updatable.SetValue(resourceLookup["Row1"], "Description", "Excellent");

            resourceLookup.Add("Row2", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.IndexedRow"));
            updatable.SetValue(resourceLookup["Row2"], "Id", new System.Guid("8f59bcb4-1bed-4b91-ab74-44628f57f160"));
            updatable.SetValue(resourceLookup["Row2"], "Count", 1);

            resourceLookup.Add("Row3", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.IndexedRow"));
            updatable.SetValue(resourceLookup["Row3"], "Id", new System.Guid("5dcbef86-a002-4121-8087-f6160fe9a1ed"));
            updatable.SetValue(resourceLookup["Row3"], "Occurred", new DateTimeOffset(2001, 4, 5, 5, 5, 5, 1, new TimeSpan(0, 1, 0)));

            resourceLookup.Add("Row4", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.Row"));
            updatable.SetValue(resourceLookup["Row4"], "Id", new System.Guid("71f7d0dc-ede4-45eb-b421-555a2aa1e58f"));
            updatable.SetValue(resourceLookup["Row4"], "Double", 1.2626d);

            resourceLookup.Add("Row5", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.Row"));
            updatable.SetValue(resourceLookup["Row5"], "Id", new System.Guid("672b8250-1e6e-4785-80cf-b94b572e42b3"));
            updatable.SetValue(resourceLookup["Row5"], "Decimal", new Decimal(1.26d));

            resourceLookup.Add("Row6", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.Row"));
            updatable.SetValue(resourceLookup["Row6"], "Id", new System.Guid("814d505b-6b6a-45a0-9de0-153b16149d56"));
            updatable.SetValue(resourceLookup["Row6"], "Date", new DateTime(1999, 2, 4));

            resourceLookup.Add("Row7", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.Row"));
            updatable.SetValue(resourceLookup["Row7"], "Id", new System.Guid("2e4904b4-00b0-4e37-9f44-b99a6b208dba"));
            updatable.SetValue(resourceLookup["Row7"], "GeomPolygon", WellKnownTextSqlFormatter.Create().Read<GeometryPolygon>(new System.IO.StringReader("SRID=0;POLYGON EMPTY")));

            resourceLookup.Add("Row8", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.Row"));
            updatable.SetValue(resourceLookup["Row8"], "Id", new System.Guid("5a76c54e-4553-4bf6-8592-04cbcbfb1e65"));

            resourceLookup.Add("Row9", updatable.CreateResource("Row", "Microsoft.Test.OData.Services.OpenTypesService.IndexedRow"));
            updatable.SetValue(resourceLookup["Row9"], "Id", new System.Guid("9f9c963b-5c2f-4e39-8bec-b45d19c5dc85"));
        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:42,代码来源:DefaultContainer.cs

示例2: PopulateComputer

        private static void PopulateComputer(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("Computer0", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer0"], "ComputerId", -10);
            updatable.SetValue(resourceLookup["Computer0"], "Name", "ssgnpylqxlvzhhddkizabqurdokalozrmmvhcvmbdmjtkqirsgnxxclempdlklusmohumxap");


            resourceLookup.Add("Computer1", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer1"], "ComputerId", -9);
            updatable.SetValue(resourceLookup["Computer1"], "Name", null);


            resourceLookup.Add("Computer2", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer2"], "ComputerId", -8);
            updatable.SetValue(resourceLookup["Computer2"], "Name", "jiuxqefpxesahtftfnopfapumzdkkhy");


            resourceLookup.Add("Computer3", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer3"], "ComputerId", -7);
            updatable.SetValue(resourceLookup["Computer3"], "Name", "nmtpkopimarxykztifuuhhpdbouyupijekgepffouavnyvuifvqnuenbyljgyqdyxdujoxuszrzhlaffy" +
                    "ipzylpavoioxzukryrq");


            resourceLookup.Add("Computer4", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer4"], "ComputerId", -6);
            updatable.SetValue(resourceLookup["Computer4"], "Name", null);


            resourceLookup.Add("Computer5", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer5"], "ComputerId", -5);
            updatable.SetValue(resourceLookup["Computer5"], "Name", "licaeurgfuooztfzjpuoqvysuntlvkrptixoulcupvltyrdz");


            resourceLookup.Add("Computer6", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer6"], "ComputerId", -4);
            updatable.SetValue(resourceLookup["Computer6"], "Name", "sssbxzussltcchxgskdezzv");


            resourceLookup.Add("Computer7", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer7"], "ComputerId", -3);
            updatable.SetValue(resourceLookup["Computer7"], "Name", "チ欲せあバя珱縷匚ダバzポソぴソぜぴ亜я歹び暦ミママぞミぞひゼそぴソ畚ゾ畚ゼまボボネダぽソяミ黑あべひソそ裹aグЯククa裹ぞ九ボぞゾ九ぺチマチマ黑たゼ珱");


            resourceLookup.Add("Computer8", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer8"], "ComputerId", -2);
            updatable.SetValue(resourceLookup["Computer8"], "Name", "hfbtpupssugßuxsuvhqsscssstlpoquzuhuratxpazfdmsszcssnuuvtdssbakptoknkaßss");


            resourceLookup.Add("Computer9", updatable.CreateResource("Computer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Computer"));
            updatable.SetValue(resourceLookup["Computer9"], "ComputerId", -1);
            updatable.SetValue(resourceLookup["Computer9"], "Name", "xifstdltzpytkiufbpzuofuxnzuyyiazceilfmkqubusfqzuyfrmddtnxjutkmuxnyljapzpodzyojnya" +
                    "paphkqzcknxhq");

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:55,代码来源:DefaultContainer.cs

示例3: PopulateCustomerInfo

        private static void PopulateCustomerInfo(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("CustomerInfo0", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo0"], "CustomerInfoId", -10);
            updatable.SetValue(resourceLookup["CustomerInfo0"], "Information", "び黑ポ畚ぜマチンハ歹黑zクヲネボァたグヲ黑ソЯ歹ぴせポzゼ弌ぞせぜゼ亜Яクあソ亜ゼそせ珱ァタひグゼ縷яぁゾ黑マミ裹暦ポя");


            resourceLookup.Add("CustomerInfo1", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo1"], "CustomerInfoId", -9);
            updatable.SetValue(resourceLookup["CustomerInfo1"], "Information", "frubhbngipuuveyneosslslbtrßqjujnssgcxuuzdbeußeaductgqbvhpussktbzzfuqvkxajzckmkzlu" +
                    "thcjsku");


            resourceLookup.Add("CustomerInfo2", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo2"], "CustomerInfoId", -8);
            updatable.SetValue(resourceLookup["CustomerInfo2"], "Information", null);


            resourceLookup.Add("CustomerInfo3", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo3"], "CustomerInfoId", -7);
            updatable.SetValue(resourceLookup["CustomerInfo3"], "Information", "縷ァゾ歹ン裹ミミ九をソタボёネほひミバゼ畚Яソポ亜ほミぺまaタ畚弌匚ぞグぼそ畚ソンゼゼべチチぞミミゼマタ黑ダя縷縷珱せ亜ぴゾソ欲匚ハ九畚裹ハネё歹たゼソチほせびぜ" +
                    "ンゾ珱ぼネヲぼ九ぼ");


            resourceLookup.Add("CustomerInfo4", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo4"], "CustomerInfoId", -6);
            updatable.SetValue(resourceLookup["CustomerInfo4"], "Information", "");


            resourceLookup.Add("CustomerInfo5", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo5"], "CustomerInfoId", -5);
            updatable.SetValue(resourceLookup["CustomerInfo5"], "Information", "uuvoqobtxfgtnzugqjsocbhjkynsjafonxuxmcrnyldkxvpnuezalvpyhjpsmkgxacuruxtjruusxylnd" +
                    "zxgefpscvk");


            resourceLookup.Add("CustomerInfo6", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo6"], "CustomerInfoId", -4);
            updatable.SetValue(resourceLookup["CustomerInfo6"], "Information", null);


            resourceLookup.Add("CustomerInfo7", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo7"], "CustomerInfoId", -3);
            updatable.SetValue(resourceLookup["CustomerInfo7"], "Information", null);


            resourceLookup.Add("CustomerInfo8", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo8"], "CustomerInfoId", -2);
            updatable.SetValue(resourceLookup["CustomerInfo8"], "Information", "ebmfxjikutjvmudp");


            resourceLookup.Add("CustomerInfo9", updatable.CreateResource("CustomerInfo", "Microsoft.Test.OData.Services.AstoriaDefaultService.CustomerInfo"));
            updatable.SetValue(resourceLookup["CustomerInfo9"], "CustomerInfoId", -1);
            updatable.SetValue(resourceLookup["CustomerInfo9"], "Information", "マびaゼミひグ暦タぽんミaソЯんクポをんЯダ珱ポぼaё九ぁヲЯべほ歹ァソぜボ縷ァン弌バマ亜ぞミ暦ダダポソソボネたんまた匚ぞボ九チぽぜソぜぞチぺミ弌zんぺzひ縷そぴ" +
                    "ぺべタまチ亜ハ珱びぞ暦ゾぜぺクёёゼ");

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:57,代码来源:DefaultContainer.cs

示例4: PopulateLogin

        private static void PopulateLogin(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("Login0", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login0"], "Username", "1");
            updatable.SetValue(resourceLookup["Login0"], "CustomerId", 36);


            resourceLookup.Add("Login1", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login1"], "Username", "2");
            updatable.SetValue(resourceLookup["Login1"], "CustomerId", 6084);


            resourceLookup.Add("Login2", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login2"], "Username", "3");
            updatable.SetValue(resourceLookup["Login2"], "CustomerId", 1260024743);


            resourceLookup.Add("Login3", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login3"], "Username", "4");
            updatable.SetValue(resourceLookup["Login3"], "CustomerId", 1751466686);


            resourceLookup.Add("Login4", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login4"], "Username", "5");
            updatable.SetValue(resourceLookup["Login4"], "CustomerId", -4054);


            resourceLookup.Add("Login5", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login5"], "Username", "6");
            updatable.SetValue(resourceLookup["Login5"], "CustomerId", 58089846);


            resourceLookup.Add("Login6", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login6"], "Username", "7");
            updatable.SetValue(resourceLookup["Login6"], "CustomerId", -1388509731);


            resourceLookup.Add("Login7", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login7"], "Username", "8");
            updatable.SetValue(resourceLookup["Login7"], "CustomerId", -7861);


            resourceLookup.Add("Login8", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login8"], "Username", "9");
            updatable.SetValue(resourceLookup["Login8"], "CustomerId", 62);


            resourceLookup.Add("Login9", updatable.CreateResource("Login", "Microsoft.Test.OData.Services.AstoriaDefaultService.Login"));
            updatable.SetValue(resourceLookup["Login9"], "Username", "10");
            updatable.SetValue(resourceLookup["Login9"], "CustomerId", 80);

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:53,代码来源:DefaultContainer.cs

示例5: PopulateRowIndex

        private static void PopulateRowIndex(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup) 
        {

            resourceLookup.Add("RowIndex0", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex0"], "Id", -10);


            resourceLookup.Add("RowIndex1", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex1"], "Id", -9);


            resourceLookup.Add("RowIndex2", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex2"], "Id", -8);


            resourceLookup.Add("RowIndex3", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex3"], "Id", -7);


            resourceLookup.Add("RowIndex4", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex4"], "Id", -6);


            resourceLookup.Add("RowIndex5", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex5"], "Id", -5);


            resourceLookup.Add("RowIndex6", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex6"], "Id", -4);


            resourceLookup.Add("RowIndex7", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex7"], "Id", -3);


            resourceLookup.Add("RowIndex8", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex8"], "Id", -2);


            resourceLookup.Add("RowIndex9", updatable.CreateResource("RowIndex", "Microsoft.Test.OData.Services.OpenTypesService.RowIndex"));
            updatable.SetValue(resourceLookup["RowIndex9"], "Id", -1);

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:43,代码来源:DefaultContainer.cs

示例6: PopulatePerson

        private static void PopulatePerson(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("Person0", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.SpecialEmployee"));
            updatable.SetValue(resourceLookup["Person0"], "PersonId", -10);
            updatable.SetValue(resourceLookup["Person0"], "Name", "ぺソぞ弌タァ匚タぽひハ欲ぴほ匚せまたバボチマ匚ぁゾソチぁЯそぁミя暦畚ボ歹ひЯほダチそЯせぽゼポЯチaた歹たをタマせをせ匚ミタひぜ畚暦グクひほそたグせяチ匚ヲぺぁ" +
                    "裹ぁソび黑裹縷");
            updatable.SetValue(resourceLookup["Person0"], "ManagersPersonId", 47);
            updatable.SetValue(resourceLookup["Person0"], "Salary", 4091);
            updatable.SetValue(resourceLookup["Person0"], "Title", "ぺソЯを歹ァ欲Яソあぽヲaそせя縷ポせネぴヲ黑畚яほゾほべaほネバ畚九亜ёハべぜァ裹ソ欲ほグンポ弌黑チびヲネミぼタたまバ歹チ暦タ欲をクぁクんンまソネボまタぜボポほ" +
                    "歹ソをァあяボたゾほ");
            updatable.SetValue(resourceLookup["Person0"], "CarsVIN", -1911530027);
            updatable.SetValue(resourceLookup["Person0"], "Bonus", -37730565);
            updatable.SetValue(resourceLookup["Person0"], "IsFullyVested", false);


            resourceLookup.Add("Person1", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.SpecialEmployee"));
            updatable.SetValue(resourceLookup["Person1"], "PersonId", -9);
            updatable.SetValue(resourceLookup["Person1"], "Name", "stiuictvznkcvledkjnnluuvkmyumyfduxmjqpfnbjqgmvhuiytjbjinzbfmf");
            updatable.SetValue(resourceLookup["Person1"], "ManagersPersonId", -8429952);
            updatable.SetValue(resourceLookup["Person1"], "Salary", -2147483648);
            updatable.SetValue(resourceLookup["Person1"], "Title", "バボ歹そЯゼぁゾソんボたそ九ボひ珱あマ暦ンソソァ匚ぼほたボぜク匚ソ畚ゾんaァべあяせタ縷マゼべぺマ縷ゼぞゼたzたたタァ九ひ黑縷クヲ歹マほぼをぺタ畚ボ弌黑zハボクё" +
                    "яソミマほゼまaァひゼンソ黑");
            updatable.SetValue(resourceLookup["Person1"], "CarsVIN", -2147483648);
            updatable.SetValue(resourceLookup["Person1"], "Bonus", -2147483648);
            updatable.SetValue(resourceLookup["Person1"], "IsFullyVested", false);


            resourceLookup.Add("Person2", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.SpecialEmployee"));
            updatable.SetValue(resourceLookup["Person2"], "PersonId", -8);
            updatable.SetValue(resourceLookup["Person2"], "Name", "vypuyxjjxlzfldvppqxkmzdnnapmugyumusqfrnaotviyfbudutxksfvpabxdxdmnosflbfxevfsouqdu" +
                    "tczmaguuxaf");
            updatable.SetValue(resourceLookup["Person2"], "ManagersPersonId", 3777);
            updatable.SetValue(resourceLookup["Person2"], "Salary", 334131140);
            updatable.SetValue(resourceLookup["Person2"], "Title", "せ畚珱欲バゼチミゾァ黑ぜゾボんンチ弌zタボびЯゼグぞせぼ珱ポ裹");
            updatable.SetValue(resourceLookup["Person2"], "CarsVIN", -4784);
            updatable.SetValue(resourceLookup["Person2"], "Bonus", 2147483647);
            updatable.SetValue(resourceLookup["Person2"], "IsFullyVested", true);


            resourceLookup.Add("Person3", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.SpecialEmployee"));
            updatable.SetValue(resourceLookup["Person3"], "PersonId", -7);
            updatable.SetValue(resourceLookup["Person3"], "Name", "びぞЯソぺぽァぁダをソボё暦弌裹ゾあダマ裹ぞボ歹まほぼ亜ぽせ黑をミタゼソぺぞネяバaぁёぴぽ");
            updatable.SetValue(resourceLookup["Person3"], "ManagersPersonId", -56);
            updatable.SetValue(resourceLookup["Person3"], "Salary", 2016141256);
            updatable.SetValue(resourceLookup["Person3"], "Title", "uuzantjguxlhfqgilizenqahpiqcqznzgyeyzaaonqagfcfxkuu");
            updatable.SetValue(resourceLookup["Person3"], "CarsVIN", 2147483647);
            updatable.SetValue(resourceLookup["Person3"], "Bonus", -9620);
            updatable.SetValue(resourceLookup["Person3"], "IsFullyVested", false);


            resourceLookup.Add("Person4", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Employee"));
            updatable.SetValue(resourceLookup["Person4"], "PersonId", -6);
            updatable.SetValue(resourceLookup["Person4"], "Name", "vnqfkvpolnxvurgxpfbfquqrqxqxknjykkuapsqcmbeuslhkqufultvr");
            updatable.SetValue(resourceLookup["Person4"], "ManagersPersonId", -9918);
            updatable.SetValue(resourceLookup["Person4"], "Salary", 2147483647);
            updatable.SetValue(resourceLookup["Person4"], "Title", "osshrngfyrßulolssumccqfdktqkisioexmuevutzgnjmnajpkßlesslapymreidqunzzssßkuaufyiyu" +
                    "ztbyrsqeo");


            resourceLookup.Add("Person5", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Person"));
            updatable.SetValue(resourceLookup["Person5"], "PersonId", -5);
            updatable.SetValue(resourceLookup["Person5"], "Name", "xhsdckkeqzvlnprheujeycqrglfehtdocildrequohlffazfgtvmddyqsaxrojqxrsckohrakdxlrghgm" +
                    "zqnyruzu");


            resourceLookup.Add("Person6", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Person"));
            updatable.SetValue(resourceLookup["Person6"], "PersonId", -4);
            updatable.SetValue(resourceLookup["Person6"], "Name", "rpdßgclhsszuslßrdyeusjkmsktddlabiyofdxhnrmpbcofbrxvssru");


            resourceLookup.Add("Person7", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Employee"));
            updatable.SetValue(resourceLookup["Person7"], "PersonId", -3);
            updatable.SetValue(resourceLookup["Person7"], "Name", "ybqmssrdtjßcbhhmfxvhoxlssekuuibnmltiahdssxnpktmtorxfmeßbbujc");
            updatable.SetValue(resourceLookup["Person7"], "ManagersPersonId", -465010984);
            updatable.SetValue(resourceLookup["Person7"], "Salary", 0);
            updatable.SetValue(resourceLookup["Person7"], "Title", "ミソまグたя縷ヲ弌ダゼ亜ゼをんゾ裹亜マゾダんタァハそポ縷ぁボグ黑珱ぁяポグソひゾひЯグポグボ欲を亜");


            resourceLookup.Add("Person8", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Person"));
            updatable.SetValue(resourceLookup["Person8"], "PersonId", -2);
            updatable.SetValue(resourceLookup["Person8"], "Name", "cgjcqyqskibjrgecugemeekksopkvgodyrcldbgulthluytrxnxpu");


            resourceLookup.Add("Person9", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Person"));
            updatable.SetValue(resourceLookup["Person9"], "PersonId", -1);
            updatable.SetValue(resourceLookup["Person9"], "Name", "plistompmlzaßzßcoptdbrvcdzynxeo");


            resourceLookup.Add("Person10", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Employee"));
            updatable.SetValue(resourceLookup["Person10"], "PersonId", 0);
            updatable.SetValue(resourceLookup["Person10"], "Name", "ソをポぽソ歹べぞマま匚ソバ九ミヲまソボゼせゼタァネЯそませそダЯマソゼをまハ裹チんソマゼグぼグゼマボポぽぴゼポЯ匚ァまソミaёチミ匚匚たァゼポマチせせ");
            updatable.SetValue(resourceLookup["Person10"], "ManagersPersonId", 5309);
            updatable.SetValue(resourceLookup["Person10"], "Salary", 85);
            updatable.SetValue(resourceLookup["Person10"], "Title", "vdvjmssfkxhjosplcidßsssogadrhn");

            resourceLookup.Add("Person11", updatable.CreateResource("Person", "Microsoft.Test.OData.Services.AstoriaDefaultService.Contractor"));
            updatable.SetValue(resourceLookup["Person11"], "PersonId", 1);
            updatable.SetValue(resourceLookup["Person11"], "Name", "ltuvgssfsssßmmpdcvxpfintxkußasujuußoußifoepv");
            updatable.SetValue(resourceLookup["Person11"], "ContratorCompanyId", -2147483648);
//.........这里部分代码省略.........
开发者ID:larsenjo,项目名称:odata.net,代码行数:101,代码来源:DefaultContainer.cs

示例7: PopulateCustomer

        private static void PopulateCustomer(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("Customer0", updatable.CreateResource("Customer", "Microsoft.Test.OData.Services.AstoriaDefaultService.Customer"));
            updatable.SetValue(resourceLookup["Customer0"], "CustomerId", -10);
            updatable.SetValue(resourceLookup["Customer0"], "Name", "commastartedtotalnormaloffsetsregisteredgroupcelestialexposureconventionsimportca" +
                    "stclass");
            resourceLookup.Add("ContactDetails_0", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ContactDetails"));
            System.Collections.Generic.List<string> ContactDetails_0_EmailBag = new System.Collections.Generic.List<string>();
            ContactDetails_0_EmailBag.Add("rdstukrvlltteßzi");
            ContactDetails_0_EmailBag.Add("psgdkmxamznjulzbsohqjytbxhnojbufe");
            ContactDetails_0_EmailBag.Add("をンぺひぼゼせ暦裹я裹ぺあ亜ぞzァバ畚マネぞゼあネ弌チァ歹まゼ縷チハ裹亜黑ほゼё歹");
            updatable.SetValue(resourceLookup["ContactDetails_0"], "EmailBag", ContactDetails_0_EmailBag);
            System.Collections.Generic.List<string> ContactDetails_0_AlternativeNames = new System.Collections.Generic.List<string>();
            ContactDetails_0_AlternativeNames.Add("グぁマせぺネソぁぼソひバたぴソ歹九ネボボяポソ畚クяせべ歹珱Я欲タハバミ裹ぼボをヲ歹んひ九ひ匚ぁa");
            ContactDetails_0_AlternativeNames.Add("qckrnuruxcbhjfimnsykgfquffobcadpsaocixoeljhspxrhebkudppgndgcrlyvynqhbujrnvyxyymhn" +
                    "roemigogsqulvgallta");
            ContactDetails_0_AlternativeNames.Add("btsnhqrjqryqzgxducl");
            ContactDetails_0_AlternativeNames.Add("qbtlssjhunufmzdv");
            ContactDetails_0_AlternativeNames.Add("ボんЯぜチべゼボボほa匚ミぼ九ぁひチ珱黑ミんぁタび暦クソソボゾんんあゼぞひタボタぜん弌ひべ匚");
            ContactDetails_0_AlternativeNames.Add("vicqasfdkxsuyuzspjqunxpyfuhlxfhgfqnlcpdfivqnxqoothnfsbuykfguftgulgldnkkzufssbae");
            ContactDetails_0_AlternativeNames.Add("九ソミせボぜゾボёaをぜЯまゾタぜタひ縷ダんaバたゼソ");
            ContactDetails_0_AlternativeNames.Add("ぽマタぁぁ黑ソゼミゼ匚zソダマぁァゾぽミaタゾ弌ミゼタそzぺポせ裹バポハハヲぺチあマ匚ミ");
            ContactDetails_0_AlternativeNames.Add("hssiißuamtctgqhglmusexyikhcsqctusonubxorssyizhyqpbtbdßjnelxqttkhdalabibuqhiubtßsp" +
                    "trmzelud");
            ContactDetails_0_AlternativeNames.Add("gbjssllxzzxkmßppyyrhgmoeßizlcmsuqqnvjßudszevtfunflqzqcuubukypßqjcix");
            updatable.SetValue(resourceLookup["ContactDetails_0"], "AlternativeNames", ContactDetails_0_AlternativeNames);
            resourceLookup.Add("Aliases_0", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Aliases"));
            System.Collections.Generic.List<string> Aliases_0_AlternativeNames = new System.Collections.Generic.List<string>();
            Aliases_0_AlternativeNames.Add("ゼポソソァんマaグぴ九縷亜ぞゼソグバぼダぽママぽポチボソぼぜゾんミぴほダミミ畚珱九zべ弌畚タソzゼソぁび裹ァソマヲひ匚亜ポべポぽマゼたチ裹歹ミポ");
            Aliases_0_AlternativeNames.Add("flzjuisevegjjtmpnssobmdssikhzepsjklnoceuqrßuychauxhdutqcdenvssubqkoqyzxpfmvflbhjs" +
                    "");
            Aliases_0_AlternativeNames.Add("esgmrxddisdvykgttpmizcethjuazqxemuossopssaqpmqdßkayrrocgsxqpo");
            Aliases_0_AlternativeNames.Add("クソ珱べをマんグハひボソソんミソソゼンぞたぼzミ歹ぴ");
            Aliases_0_AlternativeNames.Add("ljrggbaseqsrkelksvhouoscmoilogibae");
            Aliases_0_AlternativeNames.Add("そぜぜママゼミぼゼボべソほあんせひびゼミソ弌ほそタボマチタマソネ弌チポ匚まソゾマЯЯたゾ裹あ畚ん弌た珱畚マЯソァ珱ネびё九たミミぴぺポマゼダ弌ミマママソボ亜ぺソ匚" +
                    "グ弌グ歹ハま匚そん黑ん");
            Aliases_0_AlternativeNames.Add("ydjfrjbzcgouafasiutdhhgypssyniqlkdtxbclnaplnasjfliqxnmuplznstnqvpyrzdkxkqbtszvguu" +
                    "rhllvzziugdsuvl");
            Aliases_0_AlternativeNames.Add("たёタЯяまひぺァ暦ソマポハクタせたひァ暦ヲ九暦ぞぜチ匚欲ゼほ九ぺ畚びぞポボクぴをチチそボソマポんぽミァ弌ァぞぴまミ縷黑ミゼゼzチミソ暦ゼほ畚ソ匚ネёほゼボぴポゼ" +
                    "縷ソチポ裹ヲ縷九ン歹a九ソソ");
            updatable.SetValue(resourceLookup["Aliases_0"], "AlternativeNames", Aliases_0_AlternativeNames);
            updatable.SetValue(resourceLookup["ContactDetails_0"], "ContactAlias", resourceLookup["Aliases_0"]);
            resourceLookup.Add("Phone_0", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_0"], "PhoneNumber", "畚ぼせゼぽチ欲を縷弌ポタぺゾ欲a歹まマ亜チぁゼゼaマァゾぞあ弌そをポダボグびゼァたチ珱べぴゼタzボネァァ歹ぞゼ欲欲マソチぺんび暦ンタぺダzぴダポ縷ァボЯべぺべタび" +
                    "グ珱たミソぽひぼミ暦マミ歹そ欲ゼёべポ");
            updatable.SetValue(resourceLookup["Phone_0"], "Extension", "jqjklhnnkyhujailcedbguyectpuamgbghreatqvobbtj");
            updatable.SetValue(resourceLookup["ContactDetails_0"], "HomePhone", resourceLookup["Phone_0"]);
            resourceLookup.Add("Phone_1", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_1"], "PhoneNumber", "そマ弌あハミゼぼマ匚ソバzチぴソぁんёタゾゼソせぴボひハネゼぽべァたぺゾチァそ");
            updatable.SetValue(resourceLookup["Phone_1"], "Extension", "erpdbdvgezuztcsyßpxddmcdvgsysbtsssskhjpgssgbicdbcmdykutudsnkflxpzqxbcssdyfdqqmiuf" +
                    "ssinxkadeßustxßf");
            updatable.SetValue(resourceLookup["ContactDetails_0"], "WorkPhone", resourceLookup["Phone_1"]);
            System.Collections.Generic.List<object> ContactDetails_0_MobilePhoneBag = new System.Collections.Generic.List<object>();
            resourceLookup.Add("Phone_2", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_2"], "PhoneNumber", "essfchpbmodumdlbssaoygvcecnegßumuvszyo");
            updatable.SetValue(resourceLookup["Phone_2"], "Extension", "ilvxmcmkixinhonuxeqfcbsnlgufneqhijddgurdkuvvj");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_2"]);
            resourceLookup.Add("Phone_3", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_3"], "PhoneNumber", "bbyr");
            updatable.SetValue(resourceLookup["Phone_3"], "Extension", "グぴゼほ裹яほマタネ畚をソ九クゼ畚ゼァ縷ひグヲぽяダ歹");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_3"]);
            resourceLookup.Add("Phone_4", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_4"], "PhoneNumber", "litlxcyvpspjqankvmvtmvoabobguscosktgzul");
            updatable.SetValue(resourceLookup["Phone_4"], "Extension", "jumpßßhqzmjxqßufuaprymlrb");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_4"]);
            resourceLookup.Add("Phone_5", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_5"], "PhoneNumber", "bfi");
            updatable.SetValue(resourceLookup["Phone_5"], "Extension", "mbguodpfpohbmsnvtgxdvhssvnxfisadlnbtbvrbvfnitdjdnkdctzuukpylhfcvooryl");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_5"]);
            resourceLookup.Add("Phone_6", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_6"], "PhoneNumber", "jmvrssnupsqltlmuegpybunosssspluvvgqenfgvrjhxqqjjqublkeekssyjisdssrxyvooj");
            updatable.SetValue(resourceLookup["Phone_6"], "Extension", "aゾ暦ヲaゾをチёゼをぽァ亜ぽひぞポ裹ぼぜゼソミネミ暦ぽぽべべミ匚aぞチボネヲ黑暦たほタクチダё珱ネををチソ");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_6"]);
            resourceLookup.Add("Phone_7", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_7"], "PhoneNumber", "bqadubmkjprlorzjyuxghuthdxxufknlmasbsvhdteohujonmakgormaxpaxfhuyeuyozsqisnnfegcus" +
                    "fndzbhvjrfovkzhxu");
            updatable.SetValue(resourceLookup["Phone_7"], "Extension", "");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_7"]);
            resourceLookup.Add("Phone_8", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_8"], "PhoneNumber", "mocßmhbuavyssxuosdkmcdqbkyadgusvssppytbtuurgßqacmbhfghvugzssvi");
            updatable.SetValue(resourceLookup["Phone_8"], "Extension", "をン黑グぼ黑ゼタタポ九チzポチゼポタぁaソァゼたゼぼネ匚ゼポまポ暦zマボぜ歹ぼ");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_8"]);
            resourceLookup.Add("Phone_9", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_9"], "PhoneNumber", null);
            updatable.SetValue(resourceLookup["Phone_9"], "Extension", "バゼぼクグ");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_9"]);
            resourceLookup.Add("Phone_10", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Phone"));
            updatable.SetValue(resourceLookup["Phone_10"], "PhoneNumber", "zチ亜ネンaバそ珱グせ亜ンネヲん歹ま亜aポタミぜ弌珱ミゼЯほんボ裹я九ぁァ珱ぼクゼポネァネ珱ゼまゼあハマまネぼゼ歹ポぴたべべそボぁソ珱ヲぺ黑ンネёゼダЯタゼそzソ" +
                    "ソンzボボァ黑匚んべポポ");
            updatable.SetValue(resourceLookup["Phone_10"], "Extension", "gclzjelinpvjcxjmcrsbuzhiyuxrffycgjuonyzhkvazkklhsihhgzhg");
            ContactDetails_0_MobilePhoneBag.Add(resourceLookup["Phone_10"]);
            updatable.SetValue(resourceLookup["ContactDetails_0"], "MobilePhoneBag", ContactDetails_0_MobilePhoneBag);
            updatable.SetValue(resourceLookup["Customer0"], "PrimaryContactInfo", resourceLookup["ContactDetails_0"]);
            System.Collections.Generic.List<object> Customer0_BackupContactInfo = new System.Collections.Generic.List<object>();
            resourceLookup.Add("ContactDetails_1", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ContactDetails"));
            System.Collections.Generic.List<string> ContactDetails_1_EmailBag = new System.Collections.Generic.List<string>();
            updatable.SetValue(resourceLookup["ContactDetails_1"], "EmailBag", ContactDetails_1_EmailBag);
            System.Collections.Generic.List<string> ContactDetails_1_AlternativeNames = new System.Collections.Generic.List<string>();
            ContactDetails_1_AlternativeNames.Add("まミボあ弌ミんヲをミグミをzソボソポタzべ裹タ畚グぁ暦また裹九ぽマそ九ぽ歹ゼ九マソたそマЯぽぜゼゼ暦ハハバ珱ダグぴ亜マミaя欲ゼヲぜЯぴぴひ弌ё黑歹ゾあ");
//.........这里部分代码省略.........
开发者ID:larsenjo,项目名称:odata.net,代码行数:101,代码来源:DefaultContainer.cs

示例8: PopulateLicense

        private static void PopulateLicense(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("License0", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License0"], "Name", "1");
            updatable.SetValue(resourceLookup["License0"], "LicenseNumber", "黑ミゼあァまクグミクソё黑をァ九ンほボ暦グぴんそクマポぜポン欲ぞぴゼ");
            updatable.SetValue(resourceLookup["License0"], "LicenseClass", "vumruysjdifepjazzrhdrpndrrmfulpjqlgtcqeghxhmsn");
            updatable.SetValue(resourceLookup["License0"], "Restrictions", "jyktsbbczjhhnskvhiibrd");
            updatable.SetValue(resourceLookup["License0"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(75921225906680628, System.DateTimeKind.Utc)));


            resourceLookup.Add("License1", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License1"], "Name", "2");
            updatable.SetValue(resourceLookup["License1"], "LicenseNumber", "iexuhzerfpssj");
            updatable.SetValue(resourceLookup["License1"], "LicenseClass", "jtphxihsbkvevphumnbtzfgsejgreouozcsvqbbapeyxeauqusvdzkyijxgkrqredsenvmlfgbuyhkrap" +
                    "rlddxokdqjtvsd");
            updatable.SetValue(resourceLookup["License1"], "Restrictions", "まヲべ弌ポほダ裹弌んЯミzべァ欲Яひゼ弌ゼバチんぺそ九ゾボ裹ほチタ畚ゼあソ裹縷ぁミЯクぴまzゾチタaま匚ヲせべマゼ縷チタ");
            updatable.SetValue(resourceLookup["License1"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(1103165931078149276, System.DateTimeKind.Utc)));


            resourceLookup.Add("License2", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License2"], "Name", "3");
            updatable.SetValue(resourceLookup["License2"], "LicenseNumber", "九をЯぼ欲裹ボソバタ暦マぼ裹ソぁぞぁボン縷欲ぼゼをングたミ九ミ縷ネネ黑縷タ匚ァaァぺびソをマ珱マゼバタまた黑マ黑ぁハ");
            updatable.SetValue(resourceLookup["License2"], "LicenseClass", "tyvzsdßpmgtsrrrvoportobktefßxssvmjxlfrhßpsxibnkda");
            updatable.SetValue(resourceLookup["License2"], "Restrictions", "sxuqrhbrßßtpmbfxbgotpnßyeayfvdtpkkvne");
            updatable.SetValue(resourceLookup["License2"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(635091470054322336, System.DateTimeKind.Utc)));


            resourceLookup.Add("License3", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License3"], "Name", "4");
            updatable.SetValue(resourceLookup["License3"], "LicenseNumber", null);
            updatable.SetValue(resourceLookup["License3"], "LicenseClass", "");
            updatable.SetValue(resourceLookup["License3"], "Restrictions", "をボまぺぞぺんぁzタzポソぴz匚チをソゼzァあぺひzババяチバチチぜボタ歹ぴ九歹ンaゼぜ畚黑ダバそぜソべぁぼボヲチぁぁ");
            updatable.SetValue(resourceLookup["License3"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));


            resourceLookup.Add("License4", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License4"], "Name", "5");
            updatable.SetValue(resourceLookup["License4"], "LicenseNumber", "uuttheuhurrzscujpibuolß");
            updatable.SetValue(resourceLookup["License4"], "LicenseClass", "ハんハяЯぺまaんソハポべを九畚グゼボせネ珱ゼぞダёべせマ暦ぜ匚グソチぁチボボマゼまソンンゼン珱ゼバチぺァ黑ボ九aソゾネЯ");
            updatable.SetValue(resourceLookup["License4"], "Restrictions", "vfutsfuusssshjooegsicykkvvooursbeß");
            updatable.SetValue(resourceLookup["License4"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(136781229791597526, System.DateTimeKind.Utc)));


            resourceLookup.Add("License5", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License5"], "Name", "6");
            updatable.SetValue(resourceLookup["License5"], "LicenseNumber", "acaguebmllxbmtedjiknslczfkzeuezlvgqghokgjccntgzqu");
            updatable.SetValue(resourceLookup["License5"], "LicenseClass", "mtmaeageujkmhguoszfqiumdrbssmfcpimßgquggiugdxvijavnosryl");
            updatable.SetValue(resourceLookup["License5"], "Restrictions", "viusyugahamygmbjsvqjmsxrsixjpkygyzkzf");
            updatable.SetValue(resourceLookup["License5"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(1956961385961745520, System.DateTimeKind.Local)));


            resourceLookup.Add("License6", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License6"], "Name", "7");
            updatable.SetValue(resourceLookup["License6"], "LicenseNumber", "tbpkekriyemhebdmzvsfgdqtluzoopgvcrhxl");
            updatable.SetValue(resourceLookup["License6"], "LicenseClass", null);
            updatable.SetValue(resourceLookup["License6"], "Restrictions", "zゼハaミ匚ヲぺソzゼ欲ンゾタ欲ヲ縷タハンァママひァ弌クяaぺぴチ九クまべハソびひ裹たゼソゼミ黑ゼミせ亜ёぴボバマ縷亜ゼンハべ");
            updatable.SetValue(resourceLookup["License6"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(634724316088320793, System.DateTimeKind.Utc)));


            resourceLookup.Add("License7", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License7"], "Name", "8");
            updatable.SetValue(resourceLookup["License7"], "LicenseNumber", "ßpificvntqkssrjssphgkgsyjzssibohmßllffucvjiuvxshussyzutbbiuiubhßasubqßkhovgpzhnye" +
                    "tmuugc");
            updatable.SetValue(resourceLookup["License7"], "LicenseClass", "ゼそべЯぁソゼせぜボボあゼをチミそ弌たぽ歹ゾをяソマべ");
            updatable.SetValue(resourceLookup["License7"], "Restrictions", "jysaczvfomdkckroypqojrmkzxbphcpjrsbbsdgvfmauneepungdegmugdojtczzzyvnckkpcvvzruyyu" +
                    "pvvzghgukyjuzii");
            updatable.SetValue(resourceLookup["License7"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(2688091156667882427, System.DateTimeKind.Utc)));


            resourceLookup.Add("License8", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License8"], "Name", "9");
            updatable.SetValue(resourceLookup["License8"], "LicenseNumber", "mvhfbnmjsssjußebcrzaeilzxmlpxlß");
            updatable.SetValue(resourceLookup["License8"], "LicenseClass", "ytacvzjkrcnedhobzlimcaxlsrzqyrtvsnihbhee");
            updatable.SetValue(resourceLookup["License8"], "Restrictions", "ぼソべびマぼンボゼゾび裹縷ゾソひネミチンソミァマまミяチゾあ裹ポぼほぽんゾ暦ンマミびソぼゼべタマz縷ぁ黑я弌ほダそタ裹ネぺゼぞクチタポ");
            updatable.SetValue(resourceLookup["License8"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(453283107856026948, System.DateTimeKind.Utc)));


            resourceLookup.Add("License9", updatable.CreateResource("License", "Microsoft.Test.OData.Services.AstoriaDefaultService.License"));
            updatable.SetValue(resourceLookup["License9"], "Name", "10");
            updatable.SetValue(resourceLookup["License9"], "LicenseNumber", "ßcoyuetvqgozkmyuzulzouprkrrizmofiyurvtfqupdbniyouelssßltcrlkihqyobvxnhbssuyyunmji" +
                    "hvnssya");
            updatable.SetValue(resourceLookup["License9"], "LicenseClass", "ssagfbcotoßud");
            updatable.SetValue(resourceLookup["License9"], "Restrictions", "ァあぞァぴミぽゼあ");
            updatable.SetValue(resourceLookup["License9"], "ExpirationDate", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Utc)));

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:87,代码来源:DefaultContainer.cs

示例9: PopulateOrderLine

        private static void PopulateOrderLine(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("OrderLine0", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.OrderLine"));
            updatable.SetValue(resourceLookup["OrderLine0"], "OrderId", -10);
            updatable.SetValue(resourceLookup["OrderLine0"], "ProductId", -10);
            updatable.SetValue(resourceLookup["OrderLine0"], "Quantity", -325231153);
            updatable.SetValue(resourceLookup["OrderLine0"], "ConcurrencyToken", "lhvyagabhicdpqiqoxpztssvacdkxvoxdzksdsbykdrvnyg");


            resourceLookup.Add("OrderLine1", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.BackOrderLine"));
            updatable.SetValue(resourceLookup["OrderLine1"], "OrderId", -9);
            updatable.SetValue(resourceLookup["OrderLine1"], "ProductId", -9);
            updatable.SetValue(resourceLookup["OrderLine1"], "Quantity", -916);
            updatable.SetValue(resourceLookup["OrderLine1"], "ConcurrencyToken", "kyjykfxslrtjyhyueifuoyxqsuaduxrehalbjcmcxqzssbuhuirmacnlasbqdnmnzrayvsstlexk");


            resourceLookup.Add("OrderLine2", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.OrderLine"));
            updatable.SetValue(resourceLookup["OrderLine2"], "OrderId", -8);
            updatable.SetValue(resourceLookup["OrderLine2"], "ProductId", -8);
            updatable.SetValue(resourceLookup["OrderLine2"], "Quantity", -94);
            updatable.SetValue(resourceLookup["OrderLine2"], "ConcurrencyToken", "guijsdboufjdxgddcqssßhdhrlguhxutßnßhlqsvuqnockgcjgyhurjlevjzgovdapksxßvqmvugxoocu" +
                    "oteßhg");


            resourceLookup.Add("OrderLine3", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.BackOrderLine2"));
            updatable.SetValue(resourceLookup["OrderLine3"], "OrderId", -7);
            updatable.SetValue(resourceLookup["OrderLine3"], "ProductId", -7);
            updatable.SetValue(resourceLookup["OrderLine3"], "Quantity", 74);
            updatable.SetValue(resourceLookup["OrderLine3"], "ConcurrencyToken", "oljmddssrussdoistakqckhfuhsvucqjfgsdbugymciogcgtaexsnqubhvgaxkosatqssjvlßspi");


            resourceLookup.Add("OrderLine4", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.BackOrderLine2"));
            updatable.SetValue(resourceLookup["OrderLine4"], "OrderId", -6);
            updatable.SetValue(resourceLookup["OrderLine4"], "ProductId", -6);
            updatable.SetValue(resourceLookup["OrderLine4"], "Quantity", -2147483648);
            updatable.SetValue(resourceLookup["OrderLine4"], "ConcurrencyToken", "ctntßtpfiax");


            resourceLookup.Add("OrderLine5", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.OrderLine"));
            updatable.SetValue(resourceLookup["OrderLine5"], "OrderId", -5);
            updatable.SetValue(resourceLookup["OrderLine5"], "ProductId", -5);
            updatable.SetValue(resourceLookup["OrderLine5"], "Quantity", -94);
            updatable.SetValue(resourceLookup["OrderLine5"], "ConcurrencyToken", "vesaruhsvmvsthubptmpjcdßßojpvnciunngjbbjjlhbnfomkehyozupu");


            resourceLookup.Add("OrderLine6", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.BackOrderLine"));
            updatable.SetValue(resourceLookup["OrderLine6"], "OrderId", -4);
            updatable.SetValue(resourceLookup["OrderLine6"], "ProductId", -4);
            updatable.SetValue(resourceLookup["OrderLine6"], "Quantity", -58);
            updatable.SetValue(resourceLookup["OrderLine6"], "ConcurrencyToken", "aullcßssoudxjuotakazoccxhuslpuy");


            resourceLookup.Add("OrderLine7", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.BackOrderLine2"));
            updatable.SetValue(resourceLookup["OrderLine7"], "OrderId", -3);
            updatable.SetValue(resourceLookup["OrderLine7"], "ProductId", -3);
            updatable.SetValue(resourceLookup["OrderLine7"], "Quantity", -61);
            updatable.SetValue(resourceLookup["OrderLine7"], "ConcurrencyToken", "ehpkubjlhzvuukitzlxyuokmoejoa");


            resourceLookup.Add("OrderLine8", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.OrderLine"));
            updatable.SetValue(resourceLookup["OrderLine8"], "OrderId", -2);
            updatable.SetValue(resourceLookup["OrderLine8"], "ProductId", -2);
            updatable.SetValue(resourceLookup["OrderLine8"], "Quantity", 2147483647);
            updatable.SetValue(resourceLookup["OrderLine8"], "ConcurrencyToken", "弌ぽネ九ソァタяダタたяぁぺЯゼそバんボяほ畚せマァゼひ黑んゼびァボダソ裹ァチたあぺぞソん");


            resourceLookup.Add("OrderLine9", updatable.CreateResource("OrderLine", "Microsoft.Test.OData.Services.AstoriaDefaultService.BackOrderLine"));
            updatable.SetValue(resourceLookup["OrderLine9"], "OrderId", -1);
            updatable.SetValue(resourceLookup["OrderLine9"], "ProductId", -1);
            updatable.SetValue(resourceLookup["OrderLine9"], "Quantity", 158);
            updatable.SetValue(resourceLookup["OrderLine9"], "ConcurrencyToken", null);

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:74,代码来源:DefaultContainer.cs

示例10: PopulateOrder

        private static void PopulateOrder(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("Order0", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order0"], "OrderId", -10);
            updatable.SetValue(resourceLookup["Order0"], "CustomerId", 8212);
            updatable.SetValue(resourceLookup["Order0"], "Concurrency", null);


            resourceLookup.Add("Order1", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order1"], "OrderId", -9);
            updatable.SetValue(resourceLookup["Order1"], "CustomerId", 78);
            resourceLookup.Add("ConcurrencyInfo_5", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_5"], "Token", "muunxfmcubaihvgnzoojgecdztyipapnxahnuibukrveamumfuokuvbly");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_5"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(634646431705072026, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order1"], "Concurrency", resourceLookup["ConcurrencyInfo_5"]);


            resourceLookup.Add("Order2", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order2"], "OrderId", -8);
            updatable.SetValue(resourceLookup["Order2"], "CustomerId", null);
            resourceLookup.Add("ConcurrencyInfo_6", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_6"], "Token", "zjecuydplhxfzfphcfmoqlcitfxpvgqiiphyveopqieojxfspakzmoekbykuepturucfxrmbuxk");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_6"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(314858621982757172, System.DateTimeKind.Local)));
            updatable.SetValue(resourceLookup["Order2"], "Concurrency", resourceLookup["ConcurrencyInfo_6"]);


            resourceLookup.Add("Order3", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order3"], "OrderId", -7);
            updatable.SetValue(resourceLookup["Order3"], "CustomerId", -9108);
            resourceLookup.Add("ConcurrencyInfo_7", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_7"], "Token", "ffmflxqosczkqjupsbmdyqoxikzcndibsetdvusfknrfpguiyyyaeuupuqcexhlkosrnpmsnjctgzu");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_7"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order3"], "Concurrency", resourceLookup["ConcurrencyInfo_7"]);


            resourceLookup.Add("Order4", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order4"], "OrderId", -6);
            updatable.SetValue(resourceLookup["Order4"], "CustomerId", -2147483648);
            resourceLookup.Add("ConcurrencyInfo_8", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_8"], "Token", "ohiizspnhdjdnhlduxjedcejtuyttbolme");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_8"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(634777556024250665, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order4"], "Concurrency", resourceLookup["ConcurrencyInfo_8"]);


            resourceLookup.Add("Order5", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order5"], "OrderId", -5);
            updatable.SetValue(resourceLookup["Order5"], "CustomerId", 74);
            resourceLookup.Add("ConcurrencyInfo_9", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_9"], "Token", "縷タ畚そべポせマぼボひミんせ欲ぽび欲aぼボハミ縷zz");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_9"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order5"], "Concurrency", resourceLookup["ConcurrencyInfo_9"]);


            resourceLookup.Add("Order6", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order6"], "OrderId", -4);
            updatable.SetValue(resourceLookup["Order6"], "CustomerId", 82);
            resourceLookup.Add("ConcurrencyInfo_10", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_10"], "Token", null);
            updatable.SetValue(resourceLookup["ConcurrencyInfo_10"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(634890040688842825, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order6"], "Concurrency", resourceLookup["ConcurrencyInfo_10"]);


            resourceLookup.Add("Order7", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order7"], "OrderId", -3);
            updatable.SetValue(resourceLookup["Order7"], "CustomerId", -4);
            resourceLookup.Add("ConcurrencyInfo_11", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_11"], "Token", "ilqeplnmpzfbvsdcdnuqbavhhfrvokfpyqdnvifbdehpinnzfqgcpmpepdpftsjupqcukqgbdyhopbfus" +
                    "smk");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_11"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order7"], "Concurrency", resourceLookup["ConcurrencyInfo_11"]);


            resourceLookup.Add("Order8", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order8"], "OrderId", -2);
            updatable.SetValue(resourceLookup["Order8"], "CustomerId", -28);
            resourceLookup.Add("ConcurrencyInfo_12", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_12"], "Token", "マびグボポボソゾひミя黑ボ畚びяマグクソ亜ァチまぺバぞ珱ゾ亜あチ");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_12"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(87906298532648610, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order8"], "Concurrency", resourceLookup["ConcurrencyInfo_12"]);


            resourceLookup.Add("Order9", updatable.CreateResource("Order", "Microsoft.Test.OData.Services.AstoriaDefaultService.Order"));
            updatable.SetValue(resourceLookup["Order9"], "OrderId", -1);
            updatable.SetValue(resourceLookup["Order9"], "CustomerId", 2147483647);
            resourceLookup.Add("ConcurrencyInfo_13", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ConcurrencyInfo"));
            updatable.SetValue(resourceLookup["ConcurrencyInfo_13"], "Token", "gjrljyprmunaaivhpfqshvgxgßiuzdznhobeßouvßfmosfßxgufdfymnivujvvudyßryythlmvsifboaß" +
                    "cktssrclqrß");
            updatable.SetValue(resourceLookup["ConcurrencyInfo_13"], "QueriedDateTime", new System.DateTimeOffset(new System.DateTime(634890040688842825, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["Order9"], "Concurrency", resourceLookup["ConcurrencyInfo_13"]);

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:92,代码来源:DefaultContainer.cs

示例11: PopulateMessageAttachment

        private static void PopulateMessageAttachment(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("MessageAttachment0", updatable.CreateResource("MessageAttachment", "Microsoft.Test.OData.Services.AstoriaDefaultService.MessageAttachment"));
            updatable.SetValue(resourceLookup["MessageAttachment0"], "AttachmentId", new System.Guid("1126a28b-a4af-4bbd-bf0a-2b2c22635565"));
            updatable.SetValue(resourceLookup["MessageAttachment0"], "Attachment", new byte[] {
                        ((byte)(40)),
                        ((byte)(125)),
                        ((byte)(164)),
                        ((byte)(202)),
                        ((byte)(67)),
                        ((byte)(14)),
                        ((byte)(248)),
                        ((byte)(119)),
                        ((byte)(177)),
                        ((byte)(53)),
                        ((byte)(87)),
                        ((byte)(46)),
                        ((byte)(17)),
                        ((byte)(246)),
                        ((byte)(39)),
                        ((byte)(205)),
                        ((byte)(108)),
                        ((byte)(125)),
                        ((byte)(56)),
                        ((byte)(199)),
                        ((byte)(11)),
                        ((byte)(188)),
                        ((byte)(7)),
                        ((byte)(140)),
                        ((byte)(197)),
                        ((byte)(145)),
                        ((byte)(141)),
                        ((byte)(8)),
                        ((byte)(114)),
                        ((byte)(196)),
                        ((byte)(130)),
                        ((byte)(29)),
                        ((byte)(248)),
                        ((byte)(139)),
                        ((byte)(137)),
                        ((byte)(106)),
                        ((byte)(119)),
                        ((byte)(158)),
                        ((byte)(156)),
                        ((byte)(2)),
                        ((byte)(147)),
                        ((byte)(252)),
                        ((byte)(130)),
                        ((byte)(119))});


            resourceLookup.Add("MessageAttachment1", updatable.CreateResource("MessageAttachment", "Microsoft.Test.OData.Services.AstoriaDefaultService.MessageAttachment"));
            updatable.SetValue(resourceLookup["MessageAttachment1"], "AttachmentId", new System.Guid("5cb091a6-bbb4-43b4-ac12-d7ae631edcb0"));
            updatable.SetValue(resourceLookup["MessageAttachment1"], "Attachment", null);


            resourceLookup.Add("MessageAttachment2", updatable.CreateResource("MessageAttachment", "Microsoft.Test.OData.Services.AstoriaDefaultService.MessageAttachment"));
            updatable.SetValue(resourceLookup["MessageAttachment2"], "AttachmentId", new System.Guid("05ac36a6-e867-4580-8a31-c1804ef249a2"));
            updatable.SetValue(resourceLookup["MessageAttachment2"], "Attachment", new byte[] {
                        ((byte)(112)),
                        ((byte)(9)),
                        ((byte)(187)),
                        ((byte)(95)),
                        ((byte)(237)),
                        ((byte)(170)),
                        ((byte)(245)),
                        ((byte)(199)),
                        ((byte)(125)),
                        ((byte)(140)),
                        ((byte)(175)),
                        ((byte)(216)),
                        ((byte)(5)),
                        ((byte)(207)),
                        ((byte)(163)),
                        ((byte)(141)),
                        ((byte)(90)),
                        ((byte)(152)),
                        ((byte)(124)),
                        ((byte)(243)),
                        ((byte)(139)),
                        ((byte)(107)),
                        ((byte)(252)),
                        ((byte)(90)),
                        ((byte)(121)),
                        ((byte)(99)),
                        ((byte)(52)),
                        ((byte)(205)),
                        ((byte)(214)),
                        ((byte)(208)),
                        ((byte)(83)),
                        ((byte)(127)),
                        ((byte)(218)),
                        ((byte)(103)),
                        ((byte)(128)),
                        ((byte)(199)),
                        ((byte)(53)),
                        ((byte)(217)),
                        ((byte)(83)),
                        ((byte)(172)),
//.........这里部分代码省略.........
开发者ID:larsenjo,项目名称:odata.net,代码行数:101,代码来源:DefaultContainer.cs

示例12: PopulateMessage

        private static void PopulateMessage(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("Message0", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message0"], "MessageId", -10);
            updatable.SetValue(resourceLookup["Message0"], "FromUsername", "1");
            updatable.SetValue(resourceLookup["Message0"], "ToUsername", "xlodhxzzusxecbzptxlfxprneoxkn");
            updatable.SetValue(resourceLookup["Message0"], "Sent", new System.DateTimeOffset(new System.DateTime(634687198998374632, System.DateTimeKind.Unspecified), new System.TimeSpan(-479400000000)));
            updatable.SetValue(resourceLookup["Message0"], "Subject", "xbjcvnsugafßrzhcvmbdßlhboßzhyysgfnmsclvlkuuprqccmifkcfßgxbivrfykgsssijrßfttvxgunm" +
                    "tryvpdoßpuyehßxo");
            updatable.SetValue(resourceLookup["Message0"], "Body", "yovuizrklozepneajiveurlbtyyrxqmplvnnuarmmpkjuuhtxuquuuvbnpeueznumfmta");
            updatable.SetValue(resourceLookup["Message0"], "IsRead", true);


            resourceLookup.Add("Message1", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message1"], "MessageId", -9);
            updatable.SetValue(resourceLookup["Message1"], "FromUsername", "2");
            updatable.SetValue(resourceLookup["Message1"], "ToUsername", "dusscvkußguohlivjnuynjgacopbkumdluynieha");
            updatable.SetValue(resourceLookup["Message1"], "Sent", new System.DateTimeOffset(new System.DateTime(634578622312325259, System.DateTimeKind.Unspecified), new System.TimeSpan(31800000000)));
            updatable.SetValue(resourceLookup["Message1"], "Subject", "びグンンzミミぞほぺをぴ欲ゾボほハダミクぴ暦縷ぜヲ畚チびぺハ裹ゾネタせそひ縷ハァァほミ匚たほボzゼポゼ亜ぺソ弌グゾ縷ёせたチ黑ポん暦ぺをゼタあマzゼёヲせそzミほ" +
                    "ボ亜チびたぽタミミボぽ珱タべ亜ァせソ");
            updatable.SetValue(resourceLookup["Message1"], "Body", "ypsvxjxfhssfxmvglbnsnszvxkbdqßrpsziyakgjozkcgnrsssßqdvg");
            updatable.SetValue(resourceLookup["Message1"], "IsRead", false);


            resourceLookup.Add("Message2", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message2"], "MessageId", -8);
            updatable.SetValue(resourceLookup["Message2"], "FromUsername", "3");
            updatable.SetValue(resourceLookup["Message2"], "ToUsername", "uubzvsegroaesohvasssybrbßaxihfsszufhiexqxaisstp");
            updatable.SetValue(resourceLookup["Message2"], "Sent", new System.DateTimeOffset(new System.DateTime(1070686787920348535, System.DateTimeKind.Unspecified), new System.TimeSpan(128400000000)));
            updatable.SetValue(resourceLookup["Message2"], "Subject", "opczßqrasccugafßjxssvdzpg");
            updatable.SetValue(resourceLookup["Message2"], "Body", "tqogtosslpsyj");
            updatable.SetValue(resourceLookup["Message2"], "IsRead", false);


            resourceLookup.Add("Message3", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message3"], "MessageId", -7);
            updatable.SetValue(resourceLookup["Message3"], "FromUsername", "4");
            updatable.SetValue(resourceLookup["Message3"], "ToUsername", "tcjolisfklfejflxflhlßihß");
            updatable.SetValue(resourceLookup["Message3"], "Sent", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Unspecified), new System.TimeSpan(0)));
            updatable.SetValue(resourceLookup["Message3"], "Subject", "nuatkfsskyzevtgyghdxdhoßgßcqxkieuonzgdgssanjjpgsdtmqqukfhkusubrißuxdrbkmief");
            updatable.SetValue(resourceLookup["Message3"], "Body", "ゼンまン裹ァ暦ソ裹ァ珱びソひチチ九ァソゼボ九せяあをネチハ歹ボハゼ九匚ミソべ匚九ぴんza欲Яネグゾソチタぺチあポ裹ぽaハクほ畚ぁミぽ匚ミグ畚");
            updatable.SetValue(resourceLookup["Message3"], "IsRead", true);


            resourceLookup.Add("Message4", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message4"], "MessageId", -6);
            updatable.SetValue(resourceLookup["Message4"], "FromUsername", "5");
            updatable.SetValue(resourceLookup["Message4"], "ToUsername", null);
            updatable.SetValue(resourceLookup["Message4"], "Sent", new System.DateTimeOffset(new System.DateTime(1154397753187821112, System.DateTimeKind.Unspecified), new System.TimeSpan(19800000000)));
            updatable.SetValue(resourceLookup["Message4"], "Subject", "xdaubltmubssbgpvxrfsssfttyzmonjrjddssmßßnuiisshyheiacspvzlninudrhboivszhexyiupxhh" +
                    "xlykig");
            updatable.SetValue(resourceLookup["Message4"], "Body", "uhkjvfltzxdisossshxmrgqustshcdxjebg");
            updatable.SetValue(resourceLookup["Message4"], "IsRead", true);


            resourceLookup.Add("Message5", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message5"], "MessageId", -5);
            updatable.SetValue(resourceLookup["Message5"], "FromUsername", "6");
            updatable.SetValue(resourceLookup["Message5"], "ToUsername", "gznnquucnxijpkgixrgurbjbdyapfpyluadjttjtpbyujmrlgccklgzulgfsubxyyncnu");
            updatable.SetValue(resourceLookup["Message5"], "Sent", new System.DateTimeOffset(new System.DateTime(635055166271593417, System.DateTimeKind.Unspecified), new System.TimeSpan(295200000000)));
            updatable.SetValue(resourceLookup["Message5"], "Subject", "ぺタぽぜゼゾネ欲ёぜ黑ゼソマボゼをンほ歹ませんソ裹ぞびヲたソzぼハチタボa弌チソボソチせネzポバヲ暦べぼёzソたべ欲べぽをяマチひポ弌黑びンソゾソ匚べ珱");
            updatable.SetValue(resourceLookup["Message5"], "Body", "lnßgcscrihjopdupußzfutjßgsvdtqqßhdvtagglkoxvnhzuqqinguutuaamysszkuktgljpjqkyazpjß" +
                    "vrqomerblepagv");
            updatable.SetValue(resourceLookup["Message5"], "IsRead", false);


            resourceLookup.Add("Message6", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message6"], "MessageId", -4);
            updatable.SetValue(resourceLookup["Message6"], "FromUsername", "7");
            updatable.SetValue(resourceLookup["Message6"], "ToUsername", "ネゼソハポ珱黑ひソゼzёёぺんぁひたポァa歹あマをぴたゼぞびソ縷ポタz暦aひミをクゼァゼまソ弌ン亜ァソяソゾ弌たァ匚をソマゾёま黑ぁゼタまタそЯ");
            updatable.SetValue(resourceLookup["Message6"], "Sent", new System.DateTimeOffset(new System.DateTime(634704821343659427, System.DateTimeKind.Unspecified), new System.TimeSpan(276000000000)));
            updatable.SetValue(resourceLookup["Message6"], "Subject", "trjjurtjuvcnvhekbecrcbjnikdpqgjemucmknbtkeyousiokbuuojhndvgqjuttjbe");
            updatable.SetValue(resourceLookup["Message6"], "Body", null);
            updatable.SetValue(resourceLookup["Message6"], "IsRead", false);


            resourceLookup.Add("Message7", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message7"], "MessageId", -3);
            updatable.SetValue(resourceLookup["Message7"], "FromUsername", "8");
            updatable.SetValue(resourceLookup["Message7"], "ToUsername", "ァぺ裹ぺzひをほタ亜チボボゼァクポびソミソほぼネソゼボたをヲあひёァぺ歹まミそグゼボボゾぜひそ縷べ");
            updatable.SetValue(resourceLookup["Message7"], "Sent", new System.DateTimeOffset(new System.DateTime(636541007820587124, System.DateTimeKind.Unspecified), new System.TimeSpan(109200000000)));
            updatable.SetValue(resourceLookup["Message7"], "Subject", "タひzチマゼバをぴゾせzぁせん歹ボ亜畚んま九a暦ぜ畚グ欲をぞ畚クンハ歹ほマぁ弌マチ欲マミゼ黑たマ縷ぴゾべぁ");
            updatable.SetValue(resourceLookup["Message7"], "Body", "たソ欲я匚Яぁボミヲソほあひチネび亜ソёべゼび");
            updatable.SetValue(resourceLookup["Message7"], "IsRead", false);


            resourceLookup.Add("Message8", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message8"], "MessageId", -2);
            updatable.SetValue(resourceLookup["Message8"], "FromUsername", "9");
            updatable.SetValue(resourceLookup["Message8"], "ToUsername", "fßvhhrduxlozzfßotjts");
            updatable.SetValue(resourceLookup["Message8"], "Sent", new System.DateTimeOffset(new System.DateTime(634693616613661510, System.DateTimeKind.Unspecified), new System.TimeSpan(-168600000000)));
            updatable.SetValue(resourceLookup["Message8"], "Subject", "マ畚チぺをポ匚歹クポミz");
            updatable.SetValue(resourceLookup["Message8"], "Body", "sidljmxdskgergßfihjaheskssnhacrdesuqbudsbafmyfsuasj");
            updatable.SetValue(resourceLookup["Message8"], "IsRead", true);


            resourceLookup.Add("Message9", updatable.CreateResource("Message", "Microsoft.Test.OData.Services.AstoriaDefaultService.Message"));
            updatable.SetValue(resourceLookup["Message9"], "MessageId", -1);
            updatable.SetValue(resourceLookup["Message9"], "FromUsername", "10");
//.........这里部分代码省略.........
开发者ID:larsenjo,项目名称:odata.net,代码行数:101,代码来源:DefaultContainer.cs

示例13: PopulateLastLogin

        private static void PopulateLastLogin(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("LastLogin0", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin0"], "Username", "1");
            updatable.SetValue(resourceLookup["LastLogin0"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin0"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(634034884311358130, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin0"], "Duration", new System.TimeSpan(-244038308126984));


            resourceLookup.Add("LastLogin1", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin1"], "Username", "2");
            updatable.SetValue(resourceLookup["LastLogin1"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(634951495921010498, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin1"], "LoggedOut", null);
            updatable.SetValue(resourceLookup["LastLogin1"], "Duration", new System.TimeSpan(-5096500114460954624));


            resourceLookup.Add("LastLogin2", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin2"], "Username", "3");
            updatable.SetValue(resourceLookup["LastLogin2"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(635111659956332657, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin2"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(1700754018601044628, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin2"], "Duration", new System.TimeSpan(-9223372036854775808));


            resourceLookup.Add("LastLogin3", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin3"], "Username", "4");
            updatable.SetValue(resourceLookup["LastLogin3"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(410798951752821408, System.DateTimeKind.Local)));
            updatable.SetValue(resourceLookup["LastLogin3"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin3"], "Duration", new System.TimeSpan(-295696007689196));


            resourceLookup.Add("LastLogin4", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin4"], "Username", "5");
            updatable.SetValue(resourceLookup["LastLogin4"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(634873725106444196, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin4"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin4"], "Duration", new System.TimeSpan(9223372036854775807));


            resourceLookup.Add("LastLogin5", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin5"], "Username", "6");
            updatable.SetValue(resourceLookup["LastLogin5"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(1103753231112706752, System.DateTimeKind.Local)));
            updatable.SetValue(resourceLookup["LastLogin5"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(255008689497959457, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin5"], "Duration", new System.TimeSpan(0));


            resourceLookup.Add("LastLogin6", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin6"], "Username", "7");
            updatable.SetValue(resourceLookup["LastLogin6"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin6"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(634890040690642630, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin6"], "Duration", new System.TimeSpan(-9223372036854775808));


            resourceLookup.Add("LastLogin7", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin7"], "Username", "8");
            updatable.SetValue(resourceLookup["LastLogin7"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(635137351800596102, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin7"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(634682863448482541, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin7"], "Duration", new System.TimeSpan(-37196077877655));


            resourceLookup.Add("LastLogin8", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin8"], "Username", "9");
            updatable.SetValue(resourceLookup["LastLogin8"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(636671279953842206, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin8"], "LoggedOut", null);
            updatable.SetValue(resourceLookup["LastLogin8"], "Duration", new System.TimeSpan(-16960610403372));


            resourceLookup.Add("LastLogin9", updatable.CreateResource("LastLogin", "Microsoft.Test.OData.Services.AstoriaDefaultService.LastLogin"));
            updatable.SetValue(resourceLookup["LastLogin9"], "Username", "10");
            updatable.SetValue(resourceLookup["LastLogin9"], "LoggedIn", new System.DateTimeOffset(new System.DateTime(634920921517326634, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin9"], "LoggedOut", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["LastLogin9"], "Duration", new System.TimeSpan(-292865722236882));

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:73,代码来源:DefaultContainer.cs

示例14: PopulatePageView

        private static void PopulatePageView(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("PageView0", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.ProductPageView"));
            updatable.SetValue(resourceLookup["PageView0"], "PageViewId", -10);
            updatable.SetValue(resourceLookup["PageView0"], "Username", "珱び畚ボぴマせёミソ");
            updatable.SetValue(resourceLookup["PageView0"], "Viewed", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Unspecified), new System.TimeSpan(0)));
            updatable.SetValue(resourceLookup["PageView0"], "TimeSpentOnPage", new System.TimeSpan(-9223372036854775808));
            updatable.SetValue(resourceLookup["PageView0"], "PageUrl", "マ縷ぴべzぴびマゼタゾグそチべ黑ダゾzЯせをぼマポんんあぼん珱aびゾひダハマン黑マゾソぜマんネソゾタミ暦弌暦ポグボゾダボ畚ぜソそマチべボゼポん珱ゾёァバ");
            updatable.SetValue(resourceLookup["PageView0"], "ProductId", -661313570);
            updatable.SetValue(resourceLookup["PageView0"], "ConcurrencyToken", "peohxvziohepefjoogexbxfulemllbfamsmqkxvqtctoßtnntzcßvtmuthyudkpzeeegvurfn");


            resourceLookup.Add("PageView1", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.PageView"));
            updatable.SetValue(resourceLookup["PageView1"], "PageViewId", -9);
            updatable.SetValue(resourceLookup["PageView1"], "Username", "sdppimfqojrgrlmakbmrdlslzjivhaaebqezkaye");
            updatable.SetValue(resourceLookup["PageView1"], "Viewed", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Unspecified), new System.TimeSpan(0)));
            updatable.SetValue(resourceLookup["PageView1"], "TimeSpentOnPage", new System.TimeSpan(-20714019215549));
            updatable.SetValue(resourceLookup["PageView1"], "PageUrl", "exozulicliqpkjdijqoejnlkdlqlizhgdmulvavrmujhfdnnkffjjoik");


            resourceLookup.Add("PageView2", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.ProductPageView"));
            updatable.SetValue(resourceLookup["PageView2"], "PageViewId", -8);
            updatable.SetValue(resourceLookup["PageView2"], "Username", "");
            updatable.SetValue(resourceLookup["PageView2"], "Viewed", new System.DateTimeOffset(new System.DateTime(635065154115665324, System.DateTimeKind.Unspecified), new System.TimeSpan(-276600000000)));
            updatable.SetValue(resourceLookup["PageView2"], "TimeSpentOnPage", new System.TimeSpan(-7806705063807));
            updatable.SetValue(resourceLookup["PageView2"], "PageUrl", "kdqßeqpmßdjoedihqsgzlße");
            updatable.SetValue(resourceLookup["PageView2"], "ProductId", 378);
            updatable.SetValue(resourceLookup["PageView2"], "ConcurrencyToken", null);


            resourceLookup.Add("PageView3", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.PageView"));
            updatable.SetValue(resourceLookup["PageView3"], "PageViewId", -7);
            updatable.SetValue(resourceLookup["PageView3"], "Username", null);
            updatable.SetValue(resourceLookup["PageView3"], "Viewed", new System.DateTimeOffset(new System.DateTime(634890040689875500, System.DateTimeKind.Unspecified), new System.TimeSpan(-288000000000)));
            updatable.SetValue(resourceLookup["PageView3"], "TimeSpentOnPage", new System.TimeSpan(9223372036854775807));
            updatable.SetValue(resourceLookup["PageView3"], "PageUrl", "gcvxypuinhtbovkyceojyptrippdbsnjtpoox");


            resourceLookup.Add("PageView4", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.PageView"));
            updatable.SetValue(resourceLookup["PageView4"], "PageViewId", -6);
            updatable.SetValue(resourceLookup["PageView4"], "Username", "itideuecujovruvleebrbbcxsspvtqptboorftbncyssmgkissvuutnqtsymcfkssfqnsssrnoltylssu" +
                    "dsyjyqanxy");
            updatable.SetValue(resourceLookup["PageView4"], "Viewed", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Unspecified), new System.TimeSpan(0)));
            updatable.SetValue(resourceLookup["PageView4"], "TimeSpentOnPage", new System.TimeSpan(-8474227957562));
            updatable.SetValue(resourceLookup["PageView4"], "PageUrl", "ifnfßqmjjsreyessskuqvjxsstusmhdofrbsshqcsstczlbfyußiylßqbsmdhvmdioufhayssseslkhzs" +
                    "sqqxaskmvos");


            resourceLookup.Add("PageView5", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.ProductPageView"));
            updatable.SetValue(resourceLookup["PageView5"], "PageViewId", -5);
            updatable.SetValue(resourceLookup["PageView5"], "Username", "qljviysmqrpaf");
            updatable.SetValue(resourceLookup["PageView5"], "Viewed", new System.DateTimeOffset(new System.DateTime(634884013562978192, System.DateTimeKind.Unspecified), new System.TimeSpan(363600000000)));
            updatable.SetValue(resourceLookup["PageView5"], "TimeSpentOnPage", new System.TimeSpan(0));
            updatable.SetValue(resourceLookup["PageView5"], "PageUrl", "チダソグ縷ボゾグぼほ弌ポチ歹ほёЯソミを亜ミ畚ほ匚まチポゾ九");
            updatable.SetValue(resourceLookup["PageView5"], "ProductId", -807373440);
            updatable.SetValue(resourceLookup["PageView5"], "ConcurrencyToken", "racduextfkkejytrmvrbppexymjpijmsmquremß");


            resourceLookup.Add("PageView6", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.PageView"));
            updatable.SetValue(resourceLookup["PageView6"], "PageViewId", -4);
            updatable.SetValue(resourceLookup["PageView6"], "Username", "ssuovuuxaouytejmxufpssssdrjhftßgsstobqßmyjpucejnkttitgpßrmusoskxexsbjt");
            updatable.SetValue(resourceLookup["PageView6"], "Viewed", new System.DateTimeOffset(new System.DateTime(634958117802408440, System.DateTimeKind.Unspecified), new System.TimeSpan(-504000000000)));
            updatable.SetValue(resourceLookup["PageView6"], "TimeSpentOnPage", new System.TimeSpan(90138131337590));
            updatable.SetValue(resourceLookup["PageView6"], "PageUrl", "qmqczgskqvdguzsshgborudpshudvtvuassdgmruqcvnopstyedmqzckdalmljpvzjghbkgupgjjdrkop" +
                    "agtkfuakdzgeofb");


            resourceLookup.Add("PageView7", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.ProductPageView"));
            updatable.SetValue(resourceLookup["PageView7"], "PageViewId", -3);
            updatable.SetValue(resourceLookup["PageView7"], "Username", "ysezssyqrvqifmdzbsayuxyesslrmzdbxlhgpetpaixozbhgxd");
            updatable.SetValue(resourceLookup["PageView7"], "Viewed", new System.DateTimeOffset(new System.DateTime(272266420241479976, System.DateTimeKind.Unspecified), new System.TimeSpan(493200000000)));
            updatable.SetValue(resourceLookup["PageView7"], "TimeSpentOnPage", new System.TimeSpan(-9223372036854775808));
            updatable.SetValue(resourceLookup["PageView7"], "PageUrl", "dfrhntnyurvjiasyqyvmouclcehmqqmjnorsorfhshqml");
            updatable.SetValue(resourceLookup["PageView7"], "ProductId", 1881032792);
            updatable.SetValue(resourceLookup["PageView7"], "ConcurrencyToken", "mdjeuulgeckohuydauynjusorzpezhxqkqevcrymtarobhosiooyekdslfgblkhpftqstiadxhuj");


            resourceLookup.Add("PageView8", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.PageView"));
            updatable.SetValue(resourceLookup["PageView8"], "PageViewId", -2);
            updatable.SetValue(resourceLookup["PageView8"], "Username", null);
            updatable.SetValue(resourceLookup["PageView8"], "Viewed", new System.DateTimeOffset(new System.DateTime(631990133830009951, System.DateTimeKind.Unspecified), new System.TimeSpan(-436800000000)));
            updatable.SetValue(resourceLookup["PageView8"], "TimeSpentOnPage", new System.TimeSpan(5944435062742720512));
            updatable.SetValue(resourceLookup["PageView8"], "PageUrl", "jnxxxvzlbrbrxssßszsbciebßbih");


            resourceLookup.Add("PageView9", updatable.CreateResource("PageView", "Microsoft.Test.OData.Services.AstoriaDefaultService.ProductPageView"));
            updatable.SetValue(resourceLookup["PageView9"], "PageViewId", -1);
            updatable.SetValue(resourceLookup["PageView9"], "Username", "珱チマチミネ九ぞぞa暦タ珱をバびミ");
            updatable.SetValue(resourceLookup["PageView9"], "Viewed", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Unspecified), new System.TimeSpan(0)));
            updatable.SetValue(resourceLookup["PageView9"], "TimeSpentOnPage", new System.TimeSpan(-15823440477000));
            updatable.SetValue(resourceLookup["PageView9"], "PageUrl", "agffmessdzaea");
            updatable.SetValue(resourceLookup["PageView9"], "ProductId", -2119);
            updatable.SetValue(resourceLookup["PageView9"], "ConcurrencyToken", "ゼぜゼぼ畚ァチぜた黑ぜaクソミボソ欲ボ畚歹ほaぽチびんソンボゾほ畚ゼマa黑ёソびゾ畚ぞЯaぞポaせяタz縷裹ぜひびたママёそぜタゼ珱あヲ匚弌ミゼゼソグネぜ黑ァゼタ" +
                    "ググヲぜダクヲまタ九亜ァ九た");

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:97,代码来源:DefaultContainer.cs

示例15: PopulateRSAToken

        private static void PopulateRSAToken(Microsoft.OData.Service.IUpdatable updatable, System.Collections.Generic.Dictionary<string, object> resourceLookup)
        {

            resourceLookup.Add("RSAToken0", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken0"], "Serial", "1");
            updatable.SetValue(resourceLookup["RSAToken0"], "Issued", new System.DateTimeOffset(new System.DateTime(634829455350446194, System.DateTimeKind.Utc)));


            resourceLookup.Add("RSAToken1", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken1"], "Serial", "2");
            updatable.SetValue(resourceLookup["RSAToken1"], "Issued", new System.DateTimeOffset(new System.DateTime(503076552589558344, System.DateTimeKind.Local)));


            resourceLookup.Add("RSAToken2", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken2"], "Serial", "3");
            updatable.SetValue(resourceLookup["RSAToken2"], "Issued", new System.DateTimeOffset(new System.DateTime(632546050456942932, System.DateTimeKind.Utc)));


            resourceLookup.Add("RSAToken3", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken3"], "Serial", "4");
            updatable.SetValue(resourceLookup["RSAToken3"], "Issued", new System.DateTimeOffset(new System.DateTime(2335047837124116800, System.DateTimeKind.Local)));


            resourceLookup.Add("RSAToken4", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken4"], "Serial", "5");
            updatable.SetValue(resourceLookup["RSAToken4"], "Issued", new System.DateTimeOffset(new System.DateTime(635197702422280816, System.DateTimeKind.Utc)));


            resourceLookup.Add("RSAToken5", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken5"], "Serial", "6");
            updatable.SetValue(resourceLookup["RSAToken5"], "Issued", new System.DateTimeOffset(new System.DateTime(706293789283183600, System.DateTimeKind.Utc)));


            resourceLookup.Add("RSAToken6", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken6"], "Serial", "7");
            updatable.SetValue(resourceLookup["RSAToken6"], "Issued", new System.DateTimeOffset(new System.DateTime(634874269765529588, System.DateTimeKind.Utc)));


            resourceLookup.Add("RSAToken7", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken7"], "Serial", "8");
            updatable.SetValue(resourceLookup["RSAToken7"], "Issued", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));


            resourceLookup.Add("RSAToken8", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken8"], "Serial", "9");
            updatable.SetValue(resourceLookup["RSAToken8"], "Issued", new System.DateTimeOffset(new System.DateTime(635822257278775599, System.DateTimeKind.Utc)));


            resourceLookup.Add("RSAToken9", updatable.CreateResource("RSAToken", "Microsoft.Test.OData.Services.AstoriaDefaultService.RSAToken"));
            updatable.SetValue(resourceLookup["RSAToken9"], "Serial", "10");
            updatable.SetValue(resourceLookup["RSAToken9"], "Issued", new System.DateTimeOffset(new System.DateTime(634612506316814616, System.DateTimeKind.Utc)));

        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:53,代码来源:DefaultContainer.cs


注:本文中的Microsoft.CreateResource方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。