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


C# Microsoft.SetValue方法代码示例

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


在下文中一共展示了Microsoft.SetValue方法的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: IISFix

 /// <summary>
 /// This fixes my mistake for naming IIS process "wp3.exe" and not "w3wp.exe" like it should be.
 /// </summary>
 /// <param name="key"></param>
 /// <param name="descriptorIndex"></param>
 internal static void IISFix( Microsoft.Win32.RegistryKey key, int descriptorIndex )
 {
     try {
         // get the name.
         var name = (string)key.GetValue ( ATASettings.Keys.AttachDescriptorName.With ( descriptorIndex ) );
         var processGroup = ATASettings.Keys.AttachDescriptorProcessNames.With ( descriptorIndex );
         var allProcesses = ( (string)key.GetValue ( processGroup ) )
                                                 .Split ( new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries );
         // does it have the fucked up process name?
         var hasWp3 = allProcesses.Any ( s => string.Compare ( s, "wp3.exe", true ) == 0 );
         // if it is iis, and it has the wrong process, fix that shit.
         if ( string.Compare ( name, "iis", true ) == 0 && hasWp3 ) {
             var newList = allProcesses.Where ( s => string.Compare ( s, "wp3.exe", true ) != 0 ).Concat ( new string[] { "w3wp.exe" } );
             key.SetValue ( processGroup, string.Join ( ";", newList ) );
         }
     } catch ( Exception ) {
         // if we dont have access to write, there is a problem.
     }
 }
开发者ID:modulexcite,项目名称:AttachToAny,代码行数:24,代码来源:Migrator.cs

示例3: 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

示例4: EnsureAppInitSet

        public void EnsureAppInitSet(Microsoft.Win32.RegistryKey key, String szDllName)
        {
            key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(szAppInitKey, true);

            // Set the relevant values
            // TODO MAYBE record what these were set to and set them back if we uninstall?
            String LoadAppInit_DLLs = "LoadAppInit_DLLs";
            if (key.GetValue(LoadAppInit_DLLs, null) != null)
            {
                key.SetValue(LoadAppInit_DLLs, 1);
            }

            String RequireSignedAppInit_DLLs = "RequireSignedAppInit_DLLs";
            if (key.GetValue(RequireSignedAppInit_DLLs, null) != null)
            {
                key.SetValue(RequireSignedAppInit_DLLs, 1);
            }

            // Set the AppInit_Dlls value to include our DLL
            String value = key.GetValue(szAppInitValue).ToString();

            if (value.ToLower().Contains(GetDllPath(szDllName).ToLower()))
            {
                // Value already contains our DLL, so return
                return;
            }

            // Sanity check so I don't accidentally repeatedly add to this buffer
            if (value.Length > 1024)
            {
                // TODO Record an error
                return;
            }

            // Append a space if something is already there
            if (value.Length != 0)
            {
                value += " ";
            }

            // Append our DLL path
            value += GetDllPath(szDllName);

            // Set registry value
            key.SetValue(szAppInitValue, value);
        }
开发者ID:amohanta,项目名称:OpenHIPS,代码行数:46,代码来源:OhipsMonitor.cs

示例5: CopyKeyRecursive

                private static void CopyKeyRecursive(Microsoft.Win32.RegistryKey sourceKey, Microsoft.Win32.RegistryKey destKey)
                {
                        foreach (string ValueName in sourceKey.GetValueNames()) {
                                object Val = sourceKey.GetValue(ValueName);
                                destKey.SetValue(ValueName, Val, sourceKey.GetValueKind(ValueName));
                        }

                        foreach (string SubKeyName in sourceKey.GetSubKeyNames()) {
                                using (Microsoft.Win32.RegistryKey sourceSubKey = sourceKey.OpenSubKey(SubKeyName, false))
                                using (Microsoft.Win32.RegistryKey destSubKey = destKey.CreateSubKey(SubKeyName)) {
                                        CopyKeyRecursive(sourceSubKey, destSubKey);
                                }
                        }
                }
开发者ID:solutema,项目名称:ultralight,代码行数:14,代码来源:Program.cs

示例6: SetRegistryValue

        private static bool SetRegistryValue(Microsoft.Win32.RegistryKey key, string name, string value, Udbus.Core.Logging.ILog log)
        {
            bool result = false;

            try
            {
                key.SetValue(name, value);
                result = true;
            }
            catch (System.ArgumentNullException argnullEx)
            {
                if (log != null)
                {
                    log.Exception("Failed to set registry key (argument null) \"{0}\\{1}\" to \"{2}\". {3}", key.Name, name, value, argnullEx);
                }
            }
            catch (System.ArgumentException argEx)
            {
                if (log != null)
                {
                    log.Exception("Failed to set registry key (argument exception) \"{0}\\{1}\" to \"{2}\". {3}", key.Name, name, value, argEx);
                }
            }
            catch (System.ObjectDisposedException objdispEx)
            {
                if (log != null)
                {
                    log.Exception("Failed to set registry key (object disposed) \"{0}\\{1}\" to \"{2}\". {3}", key.Name, name, value, objdispEx);
                }
            }
            catch (System.UnauthorizedAccessException unauthEx)
            {
                if (log != null)
                {
                    log.Exception("Failed to set registry key (unauthorised) \"{0}\\{1}\" to \"{2}\". {3}", key.Name, name, value, unauthEx);
                }
            }
            catch (System.Security.SecurityException secEx)
            {
                if (log != null)
                {
                    log.Exception("Failed to set registry key (security exception) \"{0}\\{1}\" to \"{2}\". {3}", key.Name, name, value, secEx);
                }
            }
            catch (System.IO.IOException ioEx)
            {
                if (log != null)
                {
                    log.Exception("Failed to set registry key (io exception) \"{0}\\{1}\" to \"{2}\". {3}", key.Name, name, value, ioEx);
                }
            }

            return result;
        }
开发者ID:jean-edouard,项目名称:win-tools,代码行数:54,代码来源:XenClientGuestWCFService.cs

示例7: SetApplicationBar

 public static void SetApplicationBar(Microsoft.Phone.Controls.PhoneApplicationPage obj, DeepForest.Phone.Assets.Shell.ApplicationBar value)
 {
     obj.SetValue(ApplicationBarProperty, value);
 }
开发者ID:Rakoun,项目名称:librometer,代码行数:4,代码来源:PhoneApplicationPage.cs

示例8: PopulateCar

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

            resourceLookup.Add("Car0", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car0"], "VIN", -10);
            updatable.SetValue(resourceLookup["Car0"], "Description", "cenbviijieljtrtdslbuiqubcvhxhzenidqdnaopplvlqc");


            resourceLookup.Add("Car1", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car1"], "VIN", -9);
            updatable.SetValue(resourceLookup["Car1"], "Description", "lx");


            resourceLookup.Add("Car2", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car2"], "VIN", -8);
            updatable.SetValue(resourceLookup["Car2"], "Description", null);


            resourceLookup.Add("Car3", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car3"], "VIN", -7);
            updatable.SetValue(resourceLookup["Car3"], "Description", "畚チびンぁあяまぴひタバァンぴ歹チ歹歹ァまマぞ珱暦ぼ歹グ珱ボチタびゼソゼたグёま畚a畚歹匚畚ァゼ匚Я欲匚チチボびソァぴ暦ぺポソチバЯゼ黑ダ匚マび暦ダソク歹まあa裹" +
                    "ソハ歹暦弌aバ暦ぽネ");


            resourceLookup.Add("Car4", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car4"], "VIN", -6);
            updatable.SetValue(resourceLookup["Car4"], "Description", "kphszztczthjacvjnttrarxru");


            resourceLookup.Add("Car5", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car5"], "VIN", -5);
            updatable.SetValue(resourceLookup["Car5"], "Description", "ぁゼをあクびゼゼァァせマほグソバせё裹ヲぽンァ");


            resourceLookup.Add("Car6", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car6"], "VIN", -4);
            updatable.SetValue(resourceLookup["Car6"], "Description", "まァチボЯ暦マチま匚ぁそタんゼびたチほ黑ポびぁソёん欲欲ヲをァァポぴグ亜チポグヲミそハせゼ珱ゼぜせポゼゼa裹黑そまそチ");


            resourceLookup.Add("Car7", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car7"], "VIN", -3);
            updatable.SetValue(resourceLookup["Car7"], "Description", "ёゼボタひべバタぞァяЯ畚ダソゾゾЯ歹ぺボぜたソ畚珱マ欲マグあ畚九ァ畚マグ裹ミゼァ欲ソ弌畚マ弌チ暦ァボぜ裹ミЯaぼひポをゾ弌歹");


            resourceLookup.Add("Car8", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car8"], "VIN", -2);
            updatable.SetValue(resourceLookup["Car8"], "Description", "bdssgpfovhjbzevqmgqxxkejsdhvtxugßßßjßfddßlsshrygytoginhrgoydicmjßcebzehqbegxgmsu");


            resourceLookup.Add("Car9", updatable.CreateResource("Car", "Microsoft.Test.OData.Services.AstoriaDefaultService.Car"));
            updatable.SetValue(resourceLookup["Car9"], "VIN", -1);
            updatable.SetValue(resourceLookup["Car9"], "Description", null);

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

示例9: 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

示例10: PopulateMappedEntityType

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

            resourceLookup.Add("MappedEntityType0", updatable.CreateResource("MappedEntityType", "Microsoft.Test.OData.Services.AstoriaDefaultService.MappedEntityType"));
            updatable.SetValue(resourceLookup["MappedEntityType0"], "Id", -10);
            updatable.SetValue(resourceLookup["MappedEntityType0"], "Href", "offsetrefusepowerpersonallocalmappedstyleinitobj");
            updatable.SetValue(resourceLookup["MappedEntityType0"], "Title", "conditionaltodaydecisionconfigurationhexinteger");
            updatable.SetValue(resourceLookup["MappedEntityType0"], "HrefLang", "platformdocumentsdecryptorsizeshmacweekoncefirst");
            updatable.SetValue(resourceLookup["MappedEntityType0"], "Type", "erastobjcustscreensharebindingmismatchcodesmacrobrowsablecriteriamapfeatureinequa" +
                    "lityiidpacking");
            updatable.SetValue(resourceLookup["MappedEntityType0"], "Length", 131);
            System.Collections.Generic.List<string> MappedEntityType0_BagOfPrimitiveToLinks = new System.Collections.Generic.List<string>();
            MappedEntityType0_BagOfPrimitiveToLinks.Add("ァゼぴ匚んマёひぽ黑ぞァぴゼぜぞボぼaネぽぞa暦ゼ匚あンぽ黑亜珱あ");
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfPrimitiveToLinks", MappedEntityType0_BagOfPrimitiveToLinks);
            updatable.SetValue(resourceLookup["MappedEntityType0"], "Logo", new byte[] {
                        ((byte)(195)),
                        ((byte)(212)),
                        ((byte)(213)),
                        ((byte)(13)),
                        ((byte)(11)),
                        ((byte)(64)),
                        ((byte)(106)),
                        ((byte)(74)),
                        ((byte)(16)),
                        ((byte)(107))});
            System.Collections.Generic.List<decimal> MappedEntityType0_BagOfDecimals = new System.Collections.Generic.List<decimal>();
            MappedEntityType0_BagOfDecimals.Add(3153.09837524813m);
            MappedEntityType0_BagOfDecimals.Add(-9722.00954692332m);
            MappedEntityType0_BagOfDecimals.Add(-0.589368370856242m);
            MappedEntityType0_BagOfDecimals.Add(-28792308624934300000000000000m);
            MappedEntityType0_BagOfDecimals.Add(-79228162514264337593543950335m);
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfDecimals", MappedEntityType0_BagOfDecimals);
            System.Collections.Generic.List<double> MappedEntityType0_BagOfDoubles = new System.Collections.Generic.List<double>();
            MappedEntityType0_BagOfDoubles.Add(-1.7976931348623157E+308D);
            MappedEntityType0_BagOfDoubles.Add(1.7976931348623157E+308D);
            MappedEntityType0_BagOfDoubles.Add(-58.374138879167482D);
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfDoubles", MappedEntityType0_BagOfDoubles);
            System.Collections.Generic.List<float> MappedEntityType0_BagOfSingles = new System.Collections.Generic.List<float>();
            MappedEntityType0_BagOfSingles.Add(-3.40282346638529E+38F);
            MappedEntityType0_BagOfSingles.Add(-3.60274514960752E+37F);
            MappedEntityType0_BagOfSingles.Add(-0.5991438F);
            MappedEntityType0_BagOfSingles.Add(-0.676722466945648F);
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfSingles", MappedEntityType0_BagOfSingles);
            System.Collections.Generic.List<byte> MappedEntityType0_BagOfBytes = new System.Collections.Generic.List<byte>();
            MappedEntityType0_BagOfBytes.Add(((byte)(214)));
            MappedEntityType0_BagOfBytes.Add(((byte)(32)));
            MappedEntityType0_BagOfBytes.Add(((byte)(134)));
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfBytes", MappedEntityType0_BagOfBytes);
            System.Collections.Generic.List<short> MappedEntityType0_BagOfInt16s = new System.Collections.Generic.List<short>();
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfInt16s", MappedEntityType0_BagOfInt16s);
            System.Collections.Generic.List<int> MappedEntityType0_BagOfInt32s = new System.Collections.Generic.List<int>();
            MappedEntityType0_BagOfInt32s.Add(-2147483648);
            MappedEntityType0_BagOfInt32s.Add(-3488);
            MappedEntityType0_BagOfInt32s.Add(-43);
            MappedEntityType0_BagOfInt32s.Add(2147483647);
            MappedEntityType0_BagOfInt32s.Add(3020);
            MappedEntityType0_BagOfInt32s.Add(0);
            MappedEntityType0_BagOfInt32s.Add(-94);
            MappedEntityType0_BagOfInt32s.Add(1466);
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfInt32s", MappedEntityType0_BagOfInt32s);
            System.Collections.Generic.List<long> MappedEntityType0_BagOfInt64s = new System.Collections.Generic.List<long>();
            MappedEntityType0_BagOfInt64s.Add(((long)(-45)));
            MappedEntityType0_BagOfInt64s.Add(((long)(-4726994273938710528)));
            MappedEntityType0_BagOfInt64s.Add(((long)(20)));
            MappedEntityType0_BagOfInt64s.Add(((long)(50)));
            MappedEntityType0_BagOfInt64s.Add(((long)(12)));
            MappedEntityType0_BagOfInt64s.Add(((long)(88)));
            MappedEntityType0_BagOfInt64s.Add(((long)(-9223372036854775808)));
            MappedEntityType0_BagOfInt64s.Add(((long)(8)));
            MappedEntityType0_BagOfInt64s.Add(((long)(9223372036854775807)));
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfInt64s", MappedEntityType0_BagOfInt64s);
            System.Collections.Generic.List<System.Guid> MappedEntityType0_BagOfGuids = new System.Collections.Generic.List<System.Guid>();
            MappedEntityType0_BagOfGuids.Add(new System.Guid("6c9a5fd9-3917-4b4c-b34a-9d997278244f"));
            MappedEntityType0_BagOfGuids.Add(new System.Guid("f400eac0-c36b-494e-af03-283858961b23"));
            MappedEntityType0_BagOfGuids.Add(new System.Guid("aa163e19-511c-4f3a-b8cb-a07b55e88a6e"));
            MappedEntityType0_BagOfGuids.Add(new System.Guid("7c473a19-ac27-4dc1-8b85-1c749836bff1"));
            MappedEntityType0_BagOfGuids.Add(new System.Guid("14fa5efc-9d18-45d0-856c-3904fb1fbed4"));
            MappedEntityType0_BagOfGuids.Add(new System.Guid("380c8f81-cb59-4179-945d-9e9c769bf4c5"));
            MappedEntityType0_BagOfGuids.Add(new System.Guid("a9db9c4b-bc1f-4934-adc9-6f4674ad7c53"));
            MappedEntityType0_BagOfGuids.Add(new System.Guid("00000000-0000-0000-0000-000000000000"));
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfGuids", MappedEntityType0_BagOfGuids);
            System.Collections.Generic.List<System.DateTimeOffset> MappedEntityType0_BagOfDateTime = new System.Collections.Generic.List<System.DateTimeOffset>();
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(635028652587250157, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(634900338946214136, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(635169748948400569, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(634890040694045540, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(634799581455710441, System.DateTimeKind.Utc)));
            MappedEntityType0_BagOfDateTime.Add(new System.DateTimeOffset(new System.DateTime(634691711897431092, System.DateTimeKind.Utc)));
            updatable.SetValue(resourceLookup["MappedEntityType0"], "BagOfDateTimeOffset", MappedEntityType0_BagOfDateTime);
            System.Collections.Generic.List<object> MappedEntityType0_BagOfComplexToCategories = new System.Collections.Generic.List<object>();
            resourceLookup.Add("ComplexToCategory_0", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ComplexToCategory"));
            updatable.SetValue(resourceLookup["ComplexToCategory_0"], "Term", "cookiesdesktopsinkdefineboundedobjprocessingtabapplications");
            updatable.SetValue(resourceLookup["ComplexToCategory_0"], "Scheme", "http://addedaggregated");
            updatable.SetValue(resourceLookup["ComplexToCategory_0"], "Label", "defaultedfreesubinsensitiveexecutablebytesinteractivetrimsafedashtransientauthori" +
                    "zation");
            MappedEntityType0_BagOfComplexToCategories.Add(resourceLookup["ComplexToCategory_0"]);
            resourceLookup.Add("ComplexToCategory_1", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.ComplexToCategory"));
//.........这里部分代码省略.........
开发者ID:larsenjo,项目名称:odata.net,代码行数:101,代码来源:DefaultContainer.cs

示例11: 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

示例12: 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

示例13: PopulateDriver

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

            resourceLookup.Add("Driver0", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver0"], "Name", "1");
            updatable.SetValue(resourceLookup["Driver0"], "BirthDate", new System.DateTimeOffset(new System.DateTime(1648541694587530184, System.DateTimeKind.Local)));


            resourceLookup.Add("Driver1", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver1"], "Name", "2");
            updatable.SetValue(resourceLookup["Driver1"], "BirthDate", new System.DateTimeOffset(new System.DateTime(634768916866217744, System.DateTimeKind.Utc)));


            resourceLookup.Add("Driver2", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver2"], "Name", "3");
            updatable.SetValue(resourceLookup["Driver2"], "BirthDate", new System.DateTimeOffset(new System.DateTime(0, System.DateTimeKind.Utc)));


            resourceLookup.Add("Driver3", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver3"], "Name", "4");
            updatable.SetValue(resourceLookup["Driver3"], "BirthDate", new System.DateTimeOffset(new System.DateTime(3155378975999999999, System.DateTimeKind.Utc)));


            resourceLookup.Add("Driver4", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver4"], "Name", "5");
            updatable.SetValue(resourceLookup["Driver4"], "BirthDate", new System.DateTimeOffset(new System.DateTime(467394024211878720, System.DateTimeKind.Utc)));


            resourceLookup.Add("Driver5", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver5"], "Name", "6");
            updatable.SetValue(resourceLookup["Driver5"], "BirthDate", new System.DateTimeOffset(new System.DateTime(1331808236889702088, System.DateTimeKind.Local)));


            resourceLookup.Add("Driver6", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver6"], "Name", "7");
            updatable.SetValue(resourceLookup["Driver6"], "BirthDate", new System.DateTimeOffset(new System.DateTime(359253517267870698, System.DateTimeKind.Local)));


            resourceLookup.Add("Driver7", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver7"], "Name", "8");
            updatable.SetValue(resourceLookup["Driver7"], "BirthDate", new System.DateTimeOffset(new System.DateTime(635064633228263943, System.DateTimeKind.Utc)));


            resourceLookup.Add("Driver8", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver8"], "Name", "9");
            updatable.SetValue(resourceLookup["Driver8"], "BirthDate", new System.DateTimeOffset(new System.DateTime(1152630070391887760, System.DateTimeKind.Local)));


            resourceLookup.Add("Driver9", updatable.CreateResource("Driver", "Microsoft.Test.OData.Services.AstoriaDefaultService.Driver"));
            updatable.SetValue(resourceLookup["Driver9"], "Name", "10");
            updatable.SetValue(resourceLookup["Driver9"], "BirthDate", new System.DateTimeOffset(new System.DateTime(635046048763579371, System.DateTimeKind.Utc)));

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

示例14: PopulateComputerDetail

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

            resourceLookup.Add("ComputerDetail0", updatable.CreateResource("ComputerDetail", "Microsoft.Test.OData.Services.AstoriaDefaultService.ComputerDetail"));
            updatable.SetValue(resourceLookup["ComputerDetail0"], "ComputerDetailId", -10);
            updatable.SetValue(resourceLookup["ComputerDetail0"], "Manufacturer", "sspayuqgmkizmvtxdeuitrnqcblxoipcsshhfvibxuzssatvjjhoftpk");
            updatable.SetValue(resourceLookup["ComputerDetail0"], "Model", "usfvbkyxssojjebyzgvtnzkuikßuxrmllzyglnsssluyxfßssioyroouxafzbhbsabkrsslbyhghicjap" +
                    "lolzqssßhhfix");
            updatable.SetValue(resourceLookup["ComputerDetail0"], "Serial", null);
            System.Collections.Generic.List<string> ComputerDetail0_SpecificationsBag = new System.Collections.Generic.List<string>();
            ComputerDetail0_SpecificationsBag.Add("vorjqalydmfuazkatkiydeicefrjhyuaupkfgbxiaehjrqhhqv");
            ComputerDetail0_SpecificationsBag.Add("rbsejgfgelhsdahkoqlnzvbq");
            ComputerDetail0_SpecificationsBag.Add("ssfvnnquahsczxlußnssrhpsszluundyßehyzjedssxom");
            ComputerDetail0_SpecificationsBag.Add("xsqocvqrzbvzhdhtilugpvayirrnomupxinhihazfghqehqymeeaupuesseluinjgbedrarqluedjfx");
            ComputerDetail0_SpecificationsBag.Add("eekuucympfgkucszfuggbmfglpnxnjvhkhalymhtfuggfafulkzedqlksoduqeyukzzhbbasjmee");
            ComputerDetail0_SpecificationsBag.Add("ゾを九クそ");
            updatable.SetValue(resourceLookup["ComputerDetail0"], "SpecificationsBag", ComputerDetail0_SpecificationsBag);
            updatable.SetValue(resourceLookup["ComputerDetail0"], "PurchaseDate", new System.DateTimeOffset(new System.DateTime(637435928158014568, System.DateTimeKind.Utc)));
            resourceLookup.Add("Dimensions_8", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Dimensions"));
            updatable.SetValue(resourceLookup["Dimensions_8"], "Width", -8917.92836319839m);
            updatable.SetValue(resourceLookup["Dimensions_8"], "Height", -79228162514264337593543950335m);
            updatable.SetValue(resourceLookup["Dimensions_8"], "Depth", -79228162514264337593543950335m);
            updatable.SetValue(resourceLookup["ComputerDetail0"], "Dimensions", resourceLookup["Dimensions_8"]);


            resourceLookup.Add("ComputerDetail1", updatable.CreateResource("ComputerDetail", "Microsoft.Test.OData.Services.AstoriaDefaultService.ComputerDetail"));
            updatable.SetValue(resourceLookup["ComputerDetail1"], "ComputerDetailId", -9);
            updatable.SetValue(resourceLookup["ComputerDetail1"], "Manufacturer", "nrcqdahhufvckcifuzejooohckbidrdpjbmxvagdomlskttjqjmroukknuhtudooa");
            updatable.SetValue(resourceLookup["ComputerDetail1"], "Model", "bkuptdmngykrsjuunkprifanmjvjhrbykskzreglxvbvyiiudzjsumnxjbegjobqrlbazu");
            updatable.SetValue(resourceLookup["ComputerDetail1"], "Serial", "tciuqkgauh");
            System.Collections.Generic.List<string> ComputerDetail1_SpecificationsBag = new System.Collections.Generic.List<string>();
            ComputerDetail1_SpecificationsBag.Add("ひチダタяЯぜ暦ポチたゼ裹あ珱ソチ黑ボせ亜ァ弌ぽダチンゼz弌グぽ九ま歹ゼを黑ゾそЯンチタяぼチをひミ珱ク欲マひ暦匚ぽネソяマ珱畚ぴ縷ポボぺソたボソタせ亜匚まぼまЯ" +
                    "マほぺzЯソぁぞёボёz");
            ComputerDetail1_SpecificationsBag.Add("orfonyermbydphalaqjfjpxujpkbtiq");
            ComputerDetail1_SpecificationsBag.Add("qessoseqmrtioktßoadquymvussskyzknnyxußnzßhszßbifbubrijurzidvjtpupbbmdpßapodci");
            updatable.SetValue(resourceLookup["ComputerDetail1"], "SpecificationsBag", ComputerDetail1_SpecificationsBag);
            updatable.SetValue(resourceLookup["ComputerDetail1"], "PurchaseDate", new System.DateTimeOffset(new System.DateTime(635125399205158670, System.DateTimeKind.Utc)));
            resourceLookup.Add("Dimensions_9", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Dimensions"));
            updatable.SetValue(resourceLookup["Dimensions_9"], "Width", -81.4338167589288m);
            updatable.SetValue(resourceLookup["Dimensions_9"], "Height", 79228162514264337593543950335m);
            updatable.SetValue(resourceLookup["Dimensions_9"], "Depth", 20089724020667800000000000000m);
            updatable.SetValue(resourceLookup["ComputerDetail1"], "Dimensions", resourceLookup["Dimensions_9"]);


            resourceLookup.Add("ComputerDetail2", updatable.CreateResource("ComputerDetail", "Microsoft.Test.OData.Services.AstoriaDefaultService.ComputerDetail"));
            updatable.SetValue(resourceLookup["ComputerDetail2"], "ComputerDetailId", -8);
            updatable.SetValue(resourceLookup["ComputerDetail2"], "Manufacturer", "tnsspmxxlbnnmßitylxssttofßßcgqtpyziuopmpofrjhaxtjnsukykzzpdßpfmc");
            updatable.SetValue(resourceLookup["ComputerDetail2"], "Model", "ゼ欲ヲそグ畚ミボぁァ九ぽぞほ欲亜aヲぞンソべぼタァタン欲弌ソマ弌クぴんチバチゼハひ歹歹チ珱ネ珱クソ亜ま匚ソマぺぺチゼ亜歹畚裹歹バボz黑");
            updatable.SetValue(resourceLookup["ComputerDetail2"], "Serial", "gmlungqqgqpgaux");
            System.Collections.Generic.List<string> ComputerDetail2_SpecificationsBag = new System.Collections.Generic.List<string>();
            ComputerDetail2_SpecificationsBag.Add("ンぴ暦チミぽЯほa");
            ComputerDetail2_SpecificationsBag.Add("jbpybyvpvxshobmtjspczucymaumnossdtbohcqgufbijhhkrbtuduxnyqgbodasuzigahhbechpnulon" +
                    "fuhfmkkvp");
            ComputerDetail2_SpecificationsBag.Add("ゾほダをゾaソァぁソん暦ハぞЯゼぽネ亜ぞぼバ暦ソボゼバゾバゾゼべボァチё畚ァぞぼせ弌タ歹タハミゼゾあハボゼボバ畚ゼそポせァaミチあぜひぼチネダa珱タぁソせヲ裹ぁポ" +
                    "びяタ縷匚");
            updatable.SetValue(resourceLookup["ComputerDetail2"], "SpecificationsBag", ComputerDetail2_SpecificationsBag);
            updatable.SetValue(resourceLookup["ComputerDetail2"], "PurchaseDate", new System.DateTimeOffset(new System.DateTime(2419805615356650661, System.DateTimeKind.Utc)));
            resourceLookup.Add("Dimensions_10", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Dimensions"));
            updatable.SetValue(resourceLookup["Dimensions_10"], "Width", -58480444791177000000000000000m);
            updatable.SetValue(resourceLookup["Dimensions_10"], "Height", 0m);
            updatable.SetValue(resourceLookup["Dimensions_10"], "Depth", -6309.05704131878m);
            updatable.SetValue(resourceLookup["ComputerDetail2"], "Dimensions", resourceLookup["Dimensions_10"]);


            resourceLookup.Add("ComputerDetail3", updatable.CreateResource("ComputerDetail", "Microsoft.Test.OData.Services.AstoriaDefaultService.ComputerDetail"));
            updatable.SetValue(resourceLookup["ComputerDetail3"], "ComputerDetailId", -7);
            updatable.SetValue(resourceLookup["ComputerDetail3"], "Manufacturer", "pebhzpduvypimernezuoqdclkpzfvugtotynulvjyonnbmgyviujuyxftqxg");
            updatable.SetValue(resourceLookup["ComputerDetail3"], "Model", "チ歹z九そ");
            updatable.SetValue(resourceLookup["ComputerDetail3"], "Serial", "hbntrfzdaku");
            System.Collections.Generic.List<string> ComputerDetail3_SpecificationsBag = new System.Collections.Generic.List<string>();
            ComputerDetail3_SpecificationsBag.Add("縷バ欲たボゾ弌ネたタяグバボ珱匚ァボァソ");
            ComputerDetail3_SpecificationsBag.Add("ohßoqmbjqxtylfpzqpcjbrssfqurjapnknßsuqhukssohmyugltttymssjkkrl");
            ComputerDetail3_SpecificationsBag.Add("グёんをんゾハ欲まほゼ匚ソぁぽゼソ縷暦ぴマん縷ポaバチぼァz裹ポバひ亜ァべチソ珱裹裹ゼソソ九ソクびяべハポポせぁひボクミaァゾァァ九びんをaぴ裹ソヲま匚縷ゼ");
            ComputerDetail3_SpecificationsBag.Add("befsfayerumbrxm");
            ComputerDetail3_SpecificationsBag.Add("rmoecuforgdu");
            ComputerDetail3_SpecificationsBag.Add("ntdupetccpuqstet");
            ComputerDetail3_SpecificationsBag.Add("タボяた欲ゾゼびまチ亜タゼたёびぴまぼゾせヲァ裹ソゾべボ");
            updatable.SetValue(resourceLookup["ComputerDetail3"], "SpecificationsBag", ComputerDetail3_SpecificationsBag);
            updatable.SetValue(resourceLookup["ComputerDetail3"], "PurchaseDate", new System.DateTimeOffset(new System.DateTime(634890261980572040, System.DateTimeKind.Utc)));
            resourceLookup.Add("Dimensions_11", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Dimensions"));
            updatable.SetValue(resourceLookup["Dimensions_11"], "Width", -37.3175203910811m);
            updatable.SetValue(resourceLookup["Dimensions_11"], "Height", -69.0031912433683m);
            updatable.SetValue(resourceLookup["Dimensions_11"], "Depth", -92.5056589278472m);
            updatable.SetValue(resourceLookup["ComputerDetail3"], "Dimensions", resourceLookup["Dimensions_11"]);


            resourceLookup.Add("ComputerDetail4", updatable.CreateResource("ComputerDetail", "Microsoft.Test.OData.Services.AstoriaDefaultService.ComputerDetail"));
            updatable.SetValue(resourceLookup["ComputerDetail4"], "ComputerDetailId", -6);
            updatable.SetValue(resourceLookup["ComputerDetail4"], "Manufacturer", "ゼバポポァミぼほせゼゼそぼポマ九グポほバまママせチ弌ソ裹ハチёёяほボぁバをネァaソクaハЯべЯゼひ");
            updatable.SetValue(resourceLookup["ComputerDetail4"], "Model", "cszninfhrmhhiaaqoirzrvgulnpk");
            updatable.SetValue(resourceLookup["ComputerDetail4"], "Serial", "mtassoecjenvxnczbavauapqjhuimssyyb");
            System.Collections.Generic.List<string> ComputerDetail4_SpecificationsBag = new System.Collections.Generic.List<string>();
            ComputerDetail4_SpecificationsBag.Add("Яあゾせ珱ほ畚そンソぴぽボゼゼマゼぴをaぞバチンヲマソびポボマタクチび");
            updatable.SetValue(resourceLookup["ComputerDetail4"], "SpecificationsBag", ComputerDetail4_SpecificationsBag);
            updatable.SetValue(resourceLookup["ComputerDetail4"], "PurchaseDate", new System.DateTimeOffset(new System.DateTime(1286483195567934984, System.DateTimeKind.Local)));
            resourceLookup.Add("Dimensions_12", updatable.CreateResource(null, "Microsoft.Test.OData.Services.AstoriaDefaultService.Dimensions"));
            updatable.SetValue(resourceLookup["Dimensions_12"], "Width", 0.729486542069693m);
            updatable.SetValue(resourceLookup["Dimensions_12"], "Height", -5140.48762019928m);
            updatable.SetValue(resourceLookup["Dimensions_12"], "Depth", 79228162514264337593543950335m);
            updatable.SetValue(resourceLookup["ComputerDetail4"], "Dimensions", resourceLookup["Dimensions_12"]);
//.........这里部分代码省略.........
开发者ID:larsenjo,项目名称:odata.net,代码行数:101,代码来源:DefaultContainer.cs

示例15: SaveSettings

		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Save the active tab.
		/// </summary>
		///
		/// <param name='key'>The Registry Key.</param>
		/// ------------------------------------------------------------------------------------
		private void SaveSettings(Microsoft.Win32.RegistryKey key)
		{
			try
			{
				IRegistryKeyNameModifier modifier = Parent.Parent as IRegistryKeyNameModifier;
				key = modifier.ModifyKey(key, true);
			}
			catch
			{}
			key.SetValue(Name + "LargeIcons", LargeIconsShowing ? 1 : 0);
			key.SetValue(Name + "State", GetButtonStates());
		}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:19,代码来源:SideBarTab.cs


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