Catalog of this series
- CRL Rapid Development Framework Series tutorial One (Code First Data Sheet no need to care)
- CRL Rapid Development Framework Series Tutorial II (based on lambda expression query)
- CRL Rapid Development Framework Series Tutorial III (update data)
- CRL Rapid Development Framework Series Tutorial IV (delete data)
- CRL Rapid Development Framework Series tutorial five (using cache)
- CRL Rapid Development Framework Series Tutorial VI (Distributed cache solution)
- CRL Rapid Development Framework Series Tutorial VII (using transactions)
- CRL Rapid Development Framework Series tutorial eight (using Crl.package)
- CRL Rapid Development Framework Series Tutorial nine (Import/Export data)
- CRL Rapid Development Framework Series Tutorial 10 (Export object structure)
- CRL Rapid Development Framework Series Tutorial 11 (Big Data sub-database sub-table solutions)
- CRL Rapid Development Framework Series Tutorial 12 (MongoDB support)
Body
As with updates, there are several ways to delete
Specify conditional deletions by expression
Code.ProductDataManage.Instance.Delete (b = b.id = = 0)
Delete by primary key
The primary key value of the incoming phase type, or the object
By object actually also by primary key Delete
Code.ProductDataManage.Instance.Delete (1); Code.ProductDataManage.Instance.Delete (New Productdata () {Id = 1});
Associate Delete
Delete by SQL Association
var query = Code.ProductDataManage.Instance.GetLambdaQuery (); Query. Where (b = b.id = = ten); Query. Join<code.member> ((a, b) = = A.supplierid = = "Ten" && b.name = = "123"); Code.ProductDataManage.Instance.Delete (query);
CRL Rapid Development Framework Series Tutorial IV (delete data)