Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
用Gateway那个方法可以实现?求表一字段的最小值.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
小鱼儿  
View profile   Translate to Translated (View Original)
 More options Dec 4 2006, 2:58 am
From: "小鱼儿" <zhblue...@gmail.com>
Date: Sun, 03 Dec 2006 23:58:27 -0800
Local: Mon, Dec 4 2006 2:58 am
Subject: 用Gateway那个方法可以实现?求表一字段的最小值.
用Gateway那个方法可以实现?求表一字段的最小值.
比如我想求商品表商品的最低价格.
public interface Product
    {
        [PrimaryKey]
        int Id
        {
            get;
        }
  int price
       {
            get;
            set;
       }
        string Name
        {
            get;
            set;
        }

    }
查寻返回一个Product


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Teddy  
View profile   Translate to Translated (View Original)
 More options Dec 4 2006, 3:05 am
From: Teddy <shijie...@gmail.com>
Date: Mon, 4 Dec 2006 16:05:23 +0800
Local: Mon, Dec 4 2006 3:05 am
Subject: Re: 用Gateway那个方法可以实现?求表一字段的最小值.

可以先用object minPrice = Gateway.Min<Product>(WhereClip.All,
Product._.price)获得最小的价格,再用Gateway.Find<Product>(Product._.price ==
minPrice);得到这个Product。

Teddy

On 12/4/06, 小鱼儿 <zhblue...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google