2017-04-09 19 views
0

私は以下のように私のコントローラを設計しようとしていますか? "ビルドノート"(以下のテキスト例)の情報を投稿し、受け入れるためのパラメータとクラスフィールドを理解しようとしていますか?ASP.net Web APIに長いテキストを投稿して受け入れる方法は?

コントローラー:

public IEnumerable<class name> GetBuildNotes([FromBody] Buildnotes buildNotes>) 
{ 
........... 
........ 
} 

Buildnotesクラス:

public class buildnotes 
{ 
public string build_notes. --> this goes to a database column build_notes of type longtext 
..... 

}

ロングテキスト:

CHECKOUT POINT 
    cld3 - 1855314 
    cmn - 1855287 

    Known issue 
    [testsuite: STA_5G_VHT]: COMDEBUG-276224: consistent crash : APPS Crash - Kernel BUG at ffffff82dc55994c [PC at reg_todo+0x1dc/0x260] [LR at reg_todo] 
    if you observe build loading issue.please use fastboot.exe path : \\\8998_adb_drivers 
    Latest META only supported on BIN1 MTP. With BINA sometimes its works. but observed random boot-up crash 
    BIN B MTP doesn't boot up with latest target meta 
    Expected behavior :Bootloader UI updated with Boot verify feature in UEFI where the signing of the images is verified. 
    You can use below script to determine the Bin/Sub BIN type and IDDq leakage values thru adb. 
    Bring up device in adb mode 
    Source : \\location\team\LA\8998_hw_type\FinalScript 
    Usage : python bining.py 
    Please run "adb disable-verity" to avoid "adb remount/push" related issue 
    Sl4a/ PMC/ Acts/ Comms:Google_testing 
    $[apps_crm]\source\google_testing 
    WAPI build 
    CCX build location 
    e 
    HOT FIX 
    HW used for BIT sanity 
    Recommendation to use MPT with chipname 2.0 card. please replace chipname card on MTP having MCN ends with 001/003/005 

    CDT programming forV2 HW 
    http://qwiki.company.com/qct-drvsw/8998 

Pre-built wiki 
http://qwiki.company.com/com_wCOM/com-CBI/Build_With_External_AU#BUILDING_DRIVER_POINTING_TO_APPS_CRM 
http://qwiki.company.com/com_wCOM/com-CBI/Build_With_External_AU#Build_ROME_and_chip_for_SP_:_com1234.LA.0.1 

    Build loading procedure 
    Load BIT (CI) Meta 

    ENGG WLAN FW load on top of BIT META 
    adb root 
    adb remount 
    adb shell mount -o rw,remount /firmware 
    adb push wlanmdsp.mbn /firmware/image 
    adb reboot 

    ENGG BT FW load on top of BIT META 
    adb root 
    adb remount 
    adb shell mount -o rw,remount /bt_firmware 
    adb push * /bt_firmware/image 
    adb reboot 
+0

@SamiKuhmonenは、ポイントを持っている、と私は彼が失礼だ場所が表示されません。あなたがこれを試して何が起こるのか、私たちに伝えて害は何ですか?そして、私はあなたのSOの "悪い担当者"のあなたの評価に同意しません。高品質の質問と回答のリポジトリを探しているプロのコーダーの中で、このサイトには最高の評判があります。この問題は、新しいプログラマーが実際にはそうではなく、これまで構築されていなかった伝統的なヘルプサイトであると仮定して質問するため、失望してしまいます。 –

+0

@ user2125837私は今まで失礼ではないように最善を尽くしています。この場合、尋問者などが不完全なコードを送って、それがうまくいくかどうかを尋ねるのは非常に時間がかかるだけです。実際の環境やアプリケーションに関する情報はありません。 「長いテキスト」を送信することは何百万という方法で行うことができ、そのテキストは実際には長くない。だからここでも答えられるものは何もない。 –

答えて

1

することができますはい、私は推測しているあなただけに必要あなたが持っているオブジェクトが、あなたのクライアントアプリケーションから渡すことは、Buildnotesクラス構造に一致します。

はこれを試してみてください: How to pass json POST data to Web API method as object

関連する問題