LitePar usage and sql writing! Litepar upgrade from 1.6 to 2.0 entity class does not inherit DataSupport, but inherits LiteParSupport

Whether it is eclipse or using android studio to develop Android projects, this method can be used

1. New project.

2. Import litepal-2.0.0.jar. LiteParSupport is only available after version 2.0.
Note that users using Android studio only need to configure the file:
dependencies {
implementation 'org.litepal.android:core:2.0.0'
}
eclipse needs to download the jar package. Click here to download the jar package
3. Create a new liteper.xml file, and configure the liteper.xml attribute, the picture is detailed:
Insert picture description here
4. Register Litepar in the AndroidManifest.xml soul file
Insert picture description here
5. New entity class inherits liteparSupport 6. New entity class is
Insert picture description here
only available Add, delete, modify and check methods in LiteSupport.
Insert picture description here
Insert picture description here

Thank you for your support, if you want to understand the software industry, let's work hard together, and strive to add wei: zzaizhangzeng

Published 23 original articles · Like 11 · Visits 30,000+

Guess you like

Origin blog.csdn.net/weixin_42279584/article/details/88790452