IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

C# Discussion :

lire flux Sap netweaver Gateway c# windows 8


Sujet :

C#

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    Consultant SAP
    Inscrit en
    Mai 2013
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Seine Saint Denis (Île de France)

    Informations professionnelles :
    Activité : Consultant SAP
    Secteur : Conseil

    Informations forums :
    Inscription : Mai 2013
    Messages : 12
    Par défaut lire flux Sap netweaver Gateway c# windows 8
    Bonjour à tous,
    Je suis développeur sur SAP et je cherche à étendre mes capacités sur le c# en créant une application qui permet de lire le flux OData sur Windows 8 qui est généré à partir de SAP Netweaver Gateway.
    J'ai testé une application sur Windows seven avec une appli console qui fonctionne tres bien mais je ne peux pas porter mon code sur Windows 8 à cause du Framework.
    L'application sur Windows 8 est sur le Framework 4.5 (je pense car je peux pas changer de Framework) j'ai ajouter le service de reference qui m'a généré une classe qui me permet de lire le flux.
    Cette classe générée est différente de celle généré sous Windows seven.
    Sous Windows seven j'ai une méthode qui s'appel Execute alors que sous Windows 8 j'ai une methode BeginExecute qui genere un thread.
    ce thread appel une methode static lorsque le resultat est disponible qui s'appel "callBacK".
    Je me documente beaucoup sur le net ce qui m'a permit de pondre le code suivant:

    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    using System.Threading;
    using Windows.UI.Popups;

    //begin jcol
    using System.Net;
    using App6.ServiceReference1;
    using System.Data.Services.Client;

    // Pour en savoir plus sur le modèle d'élément Page vierge, consultez la page http://go.microsoft.com/fwlink/?LinkId=234238

    namespace App6
    {
    /// <summary>
    /// Une page vide peut être utilisée seule ou constituer une page de destination au sein d'un frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
    static AsyncCallback callback;
    static int requestCounter;
    static List<z_flight> tableau = new List<z_flight>();
    string username = "monusersap";
    string password = "monmotdepassesap";
    ServiceReference1.Z_FLIGHT service;
    public MainPage()
    {
    this.InitializeComponent();

    callback = new AsyncCallback(callBacK);

    string functionImportName = "z_flightCollection";
    string serviceUrl = "monadresse d'interrogation";
    service = new ServiceReference1.Z_FLIGHT(new Uri(serviceUrl));

    service.Credentials = new NetworkCredential(username, password);
    Interlocked.Increment(ref requestCounter);

    string relativeUri = functionImportName;
    Uri uri = new Uri(relativeUri, UriKind.Relative);
    service.BeginExecute<z_flight>(uri, callback, service);

    while (requestCounter > 0)
    {
    }
    UpdateUI();
    }


    private void UpdateUI()
    {

    foreach (z_flight flight in tableau)
    {
    ListViewItem item = new ListViewItem();
    item.Content = flight.airline + " " + flight.airlineid + " " + flight.airportfr + " " + flight.airportto + " " + flight.arrdate; ;
    listview1.Items.Add(item);
    }
    }
    public void callBacK(IAsyncResult result)
    {
    // Decrement the request counter in a thread-safe manner.
    Interlocked.Decrement(ref requestCounter);
    DataServiceQuery<z_flight> query = result as DataServiceQuery<z_flight>;

    tableau = query.EndExecute(result).ToList<z_flight>();

    }
    }
    }

    Tout fonctionne tres bien sauf au moment ou je veux recuperer le resultat dans la methode "callBacK" à la ligne suivante:
    DataServiceQuery<z_flight> query = result as DataServiceQuery<z_flight>;
    query = null
    J'ai l'impression qu'une exception est levé mais je n'arrive pas à la déterminer.
    Pourriez vous m'aider?
    Merci d'avance.
    Cdlt
    Jonathan

  2. #2
    Membre chevronné
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2008
    Messages
    231
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Finance

    Informations forums :
    Inscription : Avril 2008
    Messages : 231
    Par défaut
    Peux tu réécrire ton post en mettant ton code dans des balises Code définit par #dans l'interface Message.

    Tu peux réécrire ton message, donc ne recrée pas un post

  3. #3
    Membre chevronné
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2008
    Messages
    231
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Paris (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Finance

    Informations forums :
    Inscription : Avril 2008
    Messages : 231
    Par défaut
    C'est du détail mais pour des questions de lisibilité tu devrais réécrire :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    public void callBacK(IAsyncResult result)
    en
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    public void CallBacK(IAsyncResult result)
    Car la ta variable porte le même nom.

    Pour ton problème tu peux le lancer en mode Debug, en vérifiant toutes les exceptions (tu peux le faire ne faisant "Ctrl+ D + E" dans Visual Studio et tu cliques sur toutes les exceptions Runtime).

    Mais attention l'utilisation du mot clef "as" pour caster ne génère pas d'exception mais par contre si il n'est pas du type définit, alors dans ce cas tu auras "null".

    Si tu veux tu peux tester le type en faisant :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    if(result is DataServiceQuery<z_flight>) {
        DataServiceQuery<z_flight> query = result as DataServiceQuery<z_flight>;
    } else { ... tu fais autre chose ... }

  4. #4
    Membre averti
    Homme Profil pro
    Consultant SAP
    Inscrit en
    Mai 2013
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Seine Saint Denis (Île de France)

    Informations professionnelles :
    Activité : Consultant SAP
    Secteur : Conseil

    Informations forums :
    Inscription : Mai 2013
    Messages : 12
    Par défaut
    Bonjour,
    Merci à vous deux pour vos conseils, j'ai quelque peu changer mon code (que je mets dans les balises adéquat ^^ )
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
     
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    using System.Threading;
    using Windows.UI.Popups;
     
    //begin jcol   
    using System.Net;
    using App6.ServiceReference1;
    using System.Data.Services.Client;
     
    // Pour en savoir plus sur le modèle d'élément Page vierge, consultez la page http://go.microsoft.com/fwlink/?LinkId=234238
     
    namespace App6
    {
        /// <summary>
        /// Une page vide peut être utilisée seule ou constituer une page de destination au sein d'un frame.
        /// </summary>
        public sealed partial class MainPage : Page
        {
            static AsyncCallback callback;
            static int requestCounter;
            static List<z_flight> tableau = new List<z_flight>();
            string username = "monid";
            string password = "monpass";
            ServiceReference1.Z_FLIGHT service;
            public MainPage()
            {
                this.InitializeComponent();
            }
            private void MainPage_Loaded(object sender, RoutedEventArgs e)
            {
     
                AsyncCallback callback = new AsyncCallback(hellocallBacK);
     
                Interlocked.Increment(ref requestCounter);
     
                string serviceUrl = "http://monserveur:8000/sap/opu/odata/sap/Z_FLIGHT/";
     
                service = new ServiceReference1.Z_FLIGHT(new Uri(serviceUrl));
     
                service.Credentials = new NetworkCredential(username, password);
                try
                {
                    DataServiceQuery<z_flight> continuation = service.z_flightCollection;
                    continuation.BeginExecute(callback, continuation);
     
                    while (requestCounter > 0)
                    {
                    }
                    UpdateUI();
                }
                catch (DataServiceClientException ez)
                {
                }
            }
     
            private void UpdateUI()
            {
     
                foreach (z_flight flight in tableau)
                {
                    ListViewItem item = new ListViewItem();
                    item.Content = flight.airline + " " + flight.airlineid + " " + flight.airportfr + " " + flight.airportto + " " + flight.arrdate; ;
                    listview1.Items.Add(item);
                }
            }
            public void hellocallBacK(IAsyncResult result)
            {
                // Decrement the request counter in a thread-safe manner.
                Interlocked.Decrement(ref requestCounter);
                          try
                {
                    if (result is DataServiceQuery<z_flight>)
                    {
                        DataServiceQuery<z_flight> query = result as DataServiceQuery<z_flight>;
                        try
                        {
                            tableau = query.EndExecute(result).ToList<z_flight>();
                        }
                        catch (System.Exception ei)
                        {
                        }
                    }
                    else { }
                }
                catch (DataServiceClientException ez)
                {
                }                
     
            }
        }
    }
    J'ai toujours le meme souci...
    De ce que je comprend:
    continuation.BeginExecute(callback, continuation); --> execute dans un thread la récupération des données.
    La récupération des résultats se déroulent dans hellocallBacK(IAsyncResult result)
    @Morgand: j'ai effectivement tester ton test du if(result is DataserviceQuery<z_flight) et celui-ci passe directement dans le else.
    Pourriez vous m'indiquer ce qu'il ne va pas dans mon nouveau code visuellement car le test est assez particulier il faut etre sur un VPN et je peux pas le diffuser pour des raisons particulières...

  5. #5
    Membre averti
    Homme Profil pro
    Consultant SAP
    Inscrit en
    Mai 2013
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Seine Saint Denis (Île de France)

    Informations professionnelles :
    Activité : Consultant SAP
    Secteur : Conseil

    Informations forums :
    Inscription : Mai 2013
    Messages : 12
    Par défaut
    Apres je sais pas si ca peut aider mais ci-joint le service qui a été genere par visual studio:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
     
    //------------------------------------------------------------------------------
    // <auto-generated>
    //     This code was generated by a tool.
    //     Runtime Version:4.0.30319.17929
    //
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
    //------------------------------------------------------------------------------
     
    // Nom du fichier d'origine*:
    // Date de génération*: 5/5/2013 8:12:44 PM
    namespace App6.ServiceReference1
    {
     
        /// <summary>
        /// Il n'existe aucun commentaire pour Z_FLIGHT dans le schéma.
        /// </summary>
        public partial class Z_FLIGHT : global::System.Data.Services.Client.DataServiceContext
        {
            /// <summary>
            /// Initialisez un nouvel objet Z_FLIGHT.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public Z_FLIGHT(global::System.Uri serviceRoot) : 
                    base(serviceRoot)
            {
                this.ResolveName = new global::System.Func<global::System.Type, string>(this.ResolveNameFromType);
                this.ResolveType = new global::System.Func<string, global::System.Type>(this.ResolveTypeFromName);
                this.OnContextCreated();
            }
            partial void OnContextCreated();
            /// <summary>
            /// Étant donné que l'espace de noms configuré pour cette référence de service
            /// dans Visual Studio est différent de celui indiqué dans le
            /// schéma du serveur, utilisez des mappeurs de type pour effectuer des mappages entre les deux.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            protected global::System.Type ResolveTypeFromName(string typeName)
            {
                if (typeName.StartsWith("Z_FLIGHT", global::System.StringComparison.Ordinal))
                {
                    return global::System.Reflection.IntrospectionExtensions.GetTypeInfo(this.GetType()).Assembly.GetType(string.Concat("App6.ServiceReference1", typeName.Substring(8)));
                }
                return null;
            }
            /// <summary>
            /// Étant donné que l'espace de noms configuré pour cette référence de service
            /// dans Visual Studio est différent de celui indiqué dans le
            /// schéma du serveur, utilisez des mappeurs de type pour effectuer des mappages entre les deux.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            protected string ResolveNameFromType(global::System.Type clientType)
            {
                if (clientType.Namespace.Equals("App6.ServiceReference1", global::System.StringComparison.Ordinal))
                {
                    return string.Concat("Z_FLIGHT.", clientType.Name);
                }
                return null;
            }
            /// <summary>
            /// Il n'existe aucun commentaire pour z_flightCollection dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public global::System.Data.Services.Client.DataServiceQuery<z_flight> z_flightCollection
            {
                get
                {
                    if ((this._z_flightCollection == null))
                    {
                        this._z_flightCollection = base.CreateQuery<z_flight>("z_flightCollection");
                    }
                    return this._z_flightCollection;
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private global::System.Data.Services.Client.DataServiceQuery<z_flight> _z_flightCollection;
            /// <summary>
            /// Il n'existe aucun commentaire pour z_flightCollection dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public void AddToz_flightCollection(z_flight z_flight)
            {
                base.AddObject("z_flightCollection", z_flight);
            }
        }
        /// <summary>
        /// Il n'existe aucun commentaire pour Z_FLIGHT.z_flight dans le schéma.
        /// </summary>
        /// <KeyProperties>
        /// flightdate
        /// connectid
        /// airlineid
        /// </KeyProperties>
        [global::System.Data.Services.Common.EntitySetAttribute("z_flightCollection")]
        [global::System.Data.Services.Common.DataServiceKeyAttribute("flightdate", "connectid", "airlineid")]
        public partial class z_flight : global::System.ComponentModel.INotifyPropertyChanged
        {
            /// <summary>
            /// Créez un nouvel objet z_flight.
            /// </summary>
            /// <param name="flightdate">Valeur initiale de flightdate.</param>
            /// <param name="connectid">Valeur initiale de connectid.</param>
            /// <param name="airlineid">Valeur initiale de airlineid.</param>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public static z_flight Createz_flight(global::System.DateTime flightdate, string connectid, string airlineid)
            {
                z_flight z_flight = new z_flight();
                z_flight.flightdate = flightdate;
                z_flight.connectid = connectid;
                z_flight.airlineid = airlineid;
                return z_flight;
            }
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété curr dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string curr
            {
                get
                {
                    return this._curr;
                }
                set
                {
                    this.OncurrChanging(value);
                    this._curr = value;
                    this.OncurrChanged();
                    this.OnPropertyChanged("curr");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _curr;
            partial void OncurrChanging(string value);
            partial void OncurrChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété arrdate dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public global::System.Nullable<global::System.DateTime> arrdate
            {
                get
                {
                    return this._arrdate;
                }
                set
                {
                    this.OnarrdateChanging(value);
                    this._arrdate = value;
                    this.OnarrdateChanged();
                    this.OnPropertyChanged("arrdate");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private global::System.Nullable<global::System.DateTime> _arrdate;
            partial void OnarrdateChanging(global::System.Nullable<global::System.DateTime> value);
            partial void OnarrdateChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété arrtime dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public global::System.Nullable<global::System.TimeSpan> arrtime
            {
                get
                {
                    return this._arrtime;
                }
                set
                {
                    this.OnarrtimeChanging(value);
                    this._arrtime = value;
                    this.OnarrtimeChanged();
                    this.OnPropertyChanged("arrtime");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private global::System.Nullable<global::System.TimeSpan> _arrtime;
            partial void OnarrtimeChanging(global::System.Nullable<global::System.TimeSpan> value);
            partial void OnarrtimeChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété airportfr dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string airportfr
            {
                get
                {
                    return this._airportfr;
                }
                set
                {
                    this.OnairportfrChanging(value);
                    this._airportfr = value;
                    this.OnairportfrChanged();
                    this.OnPropertyChanged("airportfr");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _airportfr;
            partial void OnairportfrChanging(string value);
            partial void OnairportfrChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété idairline dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string idairline
            {
                get
                {
                    return this._idairline;
                }
                set
                {
                    this.OnidairlineChanging(value);
                    this._idairline = value;
                    this.OnidairlineChanged();
                    this.OnPropertyChanged("idairline");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _idairline;
            partial void OnidairlineChanging(string value);
            partial void OnidairlineChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété flightdate dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public global::System.DateTime flightdate
            {
                get
                {
                    return this._flightdate;
                }
                set
                {
                    this.OnflightdateChanging(value);
                    this._flightdate = value;
                    this.OnflightdateChanged();
                    this.OnPropertyChanged("flightdate");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private global::System.DateTime _flightdate;
            partial void OnflightdateChanging(global::System.DateTime value);
            partial void OnflightdateChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété deptime dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public global::System.Nullable<global::System.TimeSpan> deptime
            {
                get
                {
                    return this._deptime;
                }
                set
                {
                    this.OndeptimeChanging(value);
                    this._deptime = value;
                    this.OndeptimeChanged();
                    this.OnPropertyChanged("deptime");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private global::System.Nullable<global::System.TimeSpan> _deptime;
            partial void OndeptimeChanging(global::System.Nullable<global::System.TimeSpan> value);
            partial void OndeptimeChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété price dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public global::System.Nullable<decimal> price
            {
                get
                {
                    return this._price;
                }
                set
                {
                    this.OnpriceChanging(value);
                    this._price = value;
                    this.OnpriceChanged();
                    this.OnPropertyChanged("price");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private global::System.Nullable<decimal> _price;
            partial void OnpriceChanging(global::System.Nullable<decimal> value);
            partial void OnpriceChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété airline dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string airline
            {
                get
                {
                    return this._airline;
                }
                set
                {
                    this.OnairlineChanging(value);
                    this._airline = value;
                    this.OnairlineChanged();
                    this.OnPropertyChanged("airline");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _airline;
            partial void OnairlineChanging(string value);
            partial void OnairlineChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété connectid dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string connectid
            {
                get
                {
                    return this._connectid;
                }
                set
                {
                    this.OnconnectidChanging(value);
                    this._connectid = value;
                    this.OnconnectidChanged();
                    this.OnPropertyChanged("connectid");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _connectid;
            partial void OnconnectidChanging(string value);
            partial void OnconnectidChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété curr_iso dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string curr_iso
            {
                get
                {
                    return this._curr_iso;
                }
                set
                {
                    this.Oncurr_isoChanging(value);
                    this._curr_iso = value;
                    this.Oncurr_isoChanged();
                    this.OnPropertyChanged("curr_iso");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _curr_iso;
            partial void Oncurr_isoChanging(string value);
            partial void Oncurr_isoChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété cityto dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string cityto
            {
                get
                {
                    return this._cityto;
                }
                set
                {
                    this.OncitytoChanging(value);
                    this._cityto = value;
                    this.OncitytoChanged();
                    this.OnPropertyChanged("cityto");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _cityto;
            partial void OncitytoChanging(string value);
            partial void OncitytoChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété airlineid dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string airlineid
            {
                get
                {
                    return this._airlineid;
                }
                set
                {
                    this.OnairlineidChanging(value);
                    this._airlineid = value;
                    this.OnairlineidChanged();
                    this.OnPropertyChanged("airlineid");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _airlineid;
            partial void OnairlineidChanging(string value);
            partial void OnairlineidChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété airportto dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string airportto
            {
                get
                {
                    return this._airportto;
                }
                set
                {
                    this.OnairporttoChanging(value);
                    this._airportto = value;
                    this.OnairporttoChanged();
                    this.OnPropertyChanged("airportto");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _airportto;
            partial void OnairporttoChanging(string value);
            partial void OnairporttoChanged();
            /// <summary>
            /// Il n'existe aucun commentaire pour la propriété cityfrom dans le schéma.
            /// </summary>
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public string cityfrom
            {
                get
                {
                    return this._cityfrom;
                }
                set
                {
                    this.OncityfromChanging(value);
                    this._cityfrom = value;
                    this.OncityfromChanged();
                    this.OnPropertyChanged("cityfrom");
                }
            }
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            private string _cityfrom;
            partial void OncityfromChanging(string value);
            partial void OncityfromChanged();
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            public event global::System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
            protected virtual void OnPropertyChanged(string property)
            {
                if ((this.PropertyChanged != null))
                {
                    this.PropertyChanged(this, new global::System.ComponentModel.PropertyChangedEventArgs(property));
                }
            }
        }
    }

  6. #6
    Membre averti
    Homme Profil pro
    Consultant SAP
    Inscrit en
    Mai 2013
    Messages
    12
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Seine Saint Denis (Île de France)

    Informations professionnelles :
    Activité : Consultant SAP
    Secteur : Conseil

    Informations forums :
    Inscription : Mai 2013
    Messages : 12
    Par défaut
    Derniere précision je me suis basé sur le code suivant http://msdn.microsoft.com/en-us/library/cc646724.aspx

Discussions similaires

  1. Lire des données sur un serveur windows
    Par Valkirion dans le forum Réseau
    Réponses: 1
    Dernier message: 21/01/2008, 17h06
  2. Réponses: 5
    Dernier message: 21/08/2007, 18h02
  3. [Système] Écrire / Lire flux socket SSL
    Par lem01 dans le forum Langage
    Réponses: 5
    Dernier message: 11/12/2006, 23h30
  4. lire une vidéo dans un composant window
    Par dado225 dans le forum Flash
    Réponses: 2
    Dernier message: 01/09/2006, 09h33
  5. Réponses: 4
    Dernier message: 29/03/2006, 09h54

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo